diff options
author | Alexander Gordeev <agordeev@linux.ibm.com> | 2022-07-15 12:02:33 +0200 |
---|---|---|
committer | Alexander Gordeev <agordeev@linux.ibm.com> | 2022-07-20 17:21:41 +0200 |
commit | 86caa4b678956bc19567256dd8422f3978620897 (patch) | |
tree | cd2d657ec8dbac625cae4c4c8ff569827e8a2530 /arch/s390 | |
parent | s390/mm: remove unused tprot() function (diff) | |
download | linux-86caa4b678956bc19567256dd8422f3978620897.tar.xz linux-86caa4b678956bc19567256dd8422f3978620897.zip |
s390/crash: remove redundant panic() on save area allocation failure
Make save_area_alloc() return classic NULL on allocation failure.
The only caller smp_save_dump_cpus() does check the return value
already and panics if NULL is returned.
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/kernel/crash_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/s390/kernel/crash_dump.c b/arch/s390/kernel/crash_dump.c index 28124d0fa1d5..117f13b3d153 100644 --- a/arch/s390/kernel/crash_dump.c +++ b/arch/s390/kernel/crash_dump.c @@ -63,7 +63,7 @@ struct save_area * __init save_area_alloc(bool is_boot_cpu) sa = memblock_alloc(sizeof(*sa), 8); if (!sa) - panic("Failed to allocate save area\n"); + return NULL; if (is_boot_cpu) list_add(&sa->list, &dump_save_areas); |