diff options
Diffstat (limited to 'mm/bootmem.c')
-rw-r--r-- | mm/bootmem.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/mm/bootmem.c b/mm/bootmem.c index d53112fcb404..00a96970b237 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c | |||
@@ -27,8 +27,6 @@ unsigned long max_low_pfn; | |||
27 | unsigned long min_low_pfn; | 27 | unsigned long min_low_pfn; |
28 | unsigned long max_pfn; | 28 | unsigned long max_pfn; |
29 | 29 | ||
30 | EXPORT_UNUSED_SYMBOL(max_pfn); /* June 2006 */ | ||
31 | |||
32 | static LIST_HEAD(bdata_list); | 30 | static LIST_HEAD(bdata_list); |
33 | #ifdef CONFIG_CRASH_DUMP | 31 | #ifdef CONFIG_CRASH_DUMP |
34 | /* | 32 | /* |
@@ -196,6 +194,10 @@ __alloc_bootmem_core(struct bootmem_data *bdata, unsigned long size, | |||
196 | if (limit && bdata->node_boot_start >= limit) | 194 | if (limit && bdata->node_boot_start >= limit) |
197 | return NULL; | 195 | return NULL; |
198 | 196 | ||
197 | /* on nodes without memory - bootmem_map is NULL */ | ||
198 | if (!bdata->node_bootmem_map) | ||
199 | return NULL; | ||
200 | |||
199 | end_pfn = bdata->node_low_pfn; | 201 | end_pfn = bdata->node_low_pfn; |
200 | limit = PFN_DOWN(limit); | 202 | limit = PFN_DOWN(limit); |
201 | if (limit && end_pfn > limit) | 203 | if (limit && end_pfn > limit) |