diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2019-02-18 18:03:54 +1100 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2019-02-18 18:03:54 +1100 |
commit | 4fbf24a2c4cf796c5c9798942c8ffb70f2c46feb (patch) | |
tree | 8a98d272489a5c9bcb7fe7917be16e8db2733ff2 /arch/sparc/kernel/setup_64.c | |
parent | 521ffb22b5e3eefc5f4a44d540acf746d6233cde (diff) | |
parent | f6ddb26d1da272ebfc386f2b6e9dc354f94117c0 (diff) |
Merge branch 'akpm/master'
Diffstat (limited to 'arch/sparc/kernel/setup_64.c')
-rw-r--r-- | arch/sparc/kernel/setup_64.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sparc/kernel/setup_64.c b/arch/sparc/kernel/setup_64.c index 51c4d12c0853..fd2182a5c32d 100644 --- a/arch/sparc/kernel/setup_64.c +++ b/arch/sparc/kernel/setup_64.c @@ -624,8 +624,14 @@ void __init alloc_irqstack_bootmem(void) softirq_stack[i] = memblock_alloc_node(THREAD_SIZE, THREAD_SIZE, node); + if (!softirq_stack[i]) + panic("%s: Failed to allocate %lu bytes align=%lx nid=%d\n", + __func__, THREAD_SIZE, THREAD_SIZE, node); hardirq_stack[i] = memblock_alloc_node(THREAD_SIZE, THREAD_SIZE, node); + if (!hardirq_stack[i]) + panic("%s: Failed to allocate %lu bytes align=%lx nid=%d\n", + __func__, THREAD_SIZE, THREAD_SIZE, node); } } |