diff options
-rw-r--r-- | mm/bootmem.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mm/bootmem.c b/mm/bootmem.c index d53112fcb404..94253428f091 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c | |||
@@ -196,6 +196,10 @@ __alloc_bootmem_core(struct bootmem_data *bdata, unsigned long size, | |||
196 | if (limit && bdata->node_boot_start >= limit) | 196 | if (limit && bdata->node_boot_start >= limit) |
197 | return NULL; | 197 | return NULL; |
198 | 198 | ||
199 | /* on nodes without memory - bootmem_map is NULL */ | ||
200 | if (!bdata->node_bootmem_map) | ||
201 | return NULL; | ||
202 | |||
199 | end_pfn = bdata->node_low_pfn; | 203 | end_pfn = bdata->node_low_pfn; |
200 | limit = PFN_DOWN(limit); | 204 | limit = PFN_DOWN(limit); |
201 | if (limit && end_pfn > limit) | 205 | if (limit && end_pfn > limit) |