Message ID | 20210816203511.K2fX9guWK%akpm@linux-foundation.org |
---|---|
State | New |
Headers | show |
Series | [merged] lib-use-pfn_phys-in-devmem_is_allowed.patch removed from -mm tree | expand |
--- a/lib/devmem_is_allowed.c~lib-use-pfn_phys-in-devmem_is_allowed +++ a/lib/devmem_is_allowed.c @@ -19,7 +19,7 @@ */ int devmem_is_allowed(unsigned long pfn) { - if (iomem_is_exclusive(pfn << PAGE_SHIFT)) + if (iomem_is_exclusive(PFN_PHYS(pfn))) return 0; if (!page_is_ram(pfn)) return 1;