summaryrefslogtreecommitdiffstats
path: root/mm/page_ext.c
diff options
context:
space:
mode:
Diffstat (limited to 'mm/page_ext.c')
-rw-r--r--mm/page_ext.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mm/page_ext.c b/mm/page_ext.c
index 8c78b8d45117..ab4244920e0f 100644
--- a/mm/page_ext.c
+++ b/mm/page_ext.c
@@ -273,6 +273,7 @@ static void free_page_ext(void *addr)
273 table_size = get_entry_size() * PAGES_PER_SECTION; 273 table_size = get_entry_size() * PAGES_PER_SECTION;
274 274
275 BUG_ON(PageReserved(page)); 275 BUG_ON(PageReserved(page));
276 kmemleak_free(addr);
276 free_pages_exact(addr, table_size); 277 free_pages_exact(addr, table_size);
277 } 278 }
278} 279}
@@ -300,7 +301,7 @@ static int __meminit online_page_ext(unsigned long start_pfn,
300 start = SECTION_ALIGN_DOWN(start_pfn); 301 start = SECTION_ALIGN_DOWN(start_pfn);
301 end = SECTION_ALIGN_UP(start_pfn + nr_pages); 302 end = SECTION_ALIGN_UP(start_pfn + nr_pages);
302 303
303 if (nid == -1) { 304 if (nid == NUMA_NO_NODE) {
304 /* 305 /*
305 * In this case, "nid" already exists and contains valid memory. 306 * In this case, "nid" already exists and contains valid memory.
306 * "start_pfn" passed to us is a pfn which is an arg for 307 * "start_pfn" passed to us is a pfn which is an arg for