diff options
Diffstat (limited to 'mm/bootmem.c')
-rw-r--r-- | mm/bootmem.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/mm/bootmem.c b/mm/bootmem.c index 282df0a09e6f..d2a9ce952768 100644 --- a/mm/bootmem.c +++ b/mm/bootmem.c | |||
@@ -536,11 +536,15 @@ static void * __init alloc_arch_preferred_bootmem(bootmem_data_t *bdata, | |||
536 | return kzalloc(size, GFP_NOWAIT); | 536 | return kzalloc(size, GFP_NOWAIT); |
537 | 537 | ||
538 | #ifdef CONFIG_HAVE_ARCH_BOOTMEM | 538 | #ifdef CONFIG_HAVE_ARCH_BOOTMEM |
539 | bootmem_data_t *p_bdata; | 539 | { |
540 | 540 | bootmem_data_t *p_bdata; | |
541 | p_bdata = bootmem_arch_preferred_node(bdata, size, align, goal, limit); | 541 | |
542 | if (p_bdata) | 542 | p_bdata = bootmem_arch_preferred_node(bdata, size, align, |
543 | return alloc_bootmem_core(p_bdata, size, align, goal, limit); | 543 | goal, limit); |
544 | if (p_bdata) | ||
545 | return alloc_bootmem_core(p_bdata, size, align, | ||
546 | goal, limit); | ||
547 | } | ||
544 | #endif | 548 | #endif |
545 | return NULL; | 549 | return NULL; |
546 | } | 550 | } |