mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 11:30:57 -04:00
s390/os_info: Initialize old os_info in standalone dump kernel
The commit be42660d0c13 ("s390/crash: use old os_info to create PT_LOAD headers")
introduced use of the old os_info into standalone dump kernel.
Before this change os_info_old_init() expected to be called only from
a regular kdump kernel although the function itself is able to work
in standalone dump kernels as well (because copy_oldmem_kernel() is able
to handle both use cases). Therefore, fix the expectation of os_info_old_init()
and enable it to be called from a standalone dump kernel.
Fixes: f4cac27dc0 ("s390/crash: Use old os_info to create PT_LOAD headers")
Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
This commit is contained in:
committed by
Alexander Gordeev
parent
3113a29e25
commit
a2269a66ee
@@ -18,6 +18,7 @@
|
||||
#include <asm/physmem_info.h>
|
||||
#include <asm/maccess.h>
|
||||
#include <asm/asm-offsets.h>
|
||||
#include <asm/ipl.h>
|
||||
|
||||
/*
|
||||
* OS info structure has to be page aligned
|
||||
@@ -146,7 +147,7 @@ static void os_info_old_init(void)
|
||||
|
||||
if (os_info_init)
|
||||
return;
|
||||
if (!oldmem_data.start)
|
||||
if (!oldmem_data.start && !is_ipl_type_dump())
|
||||
goto fail;
|
||||
if (copy_oldmem_kernel(&addr, __LC_OS_INFO, sizeof(addr)))
|
||||
goto fail;
|
||||
|
||||
Reference in New Issue
Block a user