summaryrefslogtreecommitdiffstats
path: root/mm/bootmem_info.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/bootmem_info.c')
-rw-r--r--mm/bootmem_info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/bootmem_info.c b/mm/bootmem_info.c
index b1efebfcf9..fa7cb0c87c 100644
--- a/mm/bootmem_info.c
+++ b/mm/bootmem_info.c
@@ -34,7 +34,7 @@ void put_page_bootmem(struct page *page)
ClearPagePrivate(page);
set_page_private(page, 0);
INIT_LIST_HEAD(&page->lru);
- kmemleak_free_part(page_to_virt(page), PAGE_SIZE);
+ kmemleak_free_part_phys(PFN_PHYS(page_to_pfn(page)), PAGE_SIZE);
free_reserved_page(page);
}
}