Message ID | 3B252F19-0EE2-4CE3-81B5-E8BED7212A2D@gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/mm/highmem.c b/arch/arm/mm/highmem.c index 9df5f09..4eeed3d 100644 --- a/arch/arm/mm/highmem.c +++ b/arch/arm/mm/highmem.c @@ -152,8 +152,7 @@ struct page *kmap_atomic_to_page(const void *ptr) { unsigned long vaddr = (unsigned long)ptr; - if (vaddr < FIXADDR_START) - return virt_to_page(ptr); - - return pte_page(get_fixmap_pte(vaddr)); + if (vaddr >= FIXADDR_START && vaddr <= FIXADDR_TOP) + return pte_page(get_fixmap_pte(vaddr)); + return kmap_to_page(ptr); }