diff options
author | Vasily Gorbik <gor@linux.ibm.com> | 2023-01-27 14:03:07 +0100 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2023-02-06 11:13:53 +0100 |
commit | 3400c35a4090704e6c465449616ab7e67a9209e7 (patch) | |
tree | 7214095ffa303352a5bbf7a5533406f5f8252116 /arch/s390/boot/head_kdump.S | |
parent | 03d4907396f30d1fbe37b67f16eaba9f0b6c3702 (diff) | |
download | linux-3400c35a4090704e6c465449616ab7e67a9209e7.tar.gz |
s390/mem_detect: fix detect_memory() error handling
Currently if for some reason sclp_early_read_info() fails,
sclp_early_get_memsize() will not set max_physmem_end and it
will stay uninitialized. Any garbage value other than 0 will lead
to detect_memory() taking wrong path or returning a garbage value
as max_physmem_end. To avoid that simply initialize max_physmem_end.
Fixes: 73045a08cf55 ("s390: unify identity mapping limits handling")
Reported-by: Alexander Gordeev <agordeev@linux.ibm.com>
Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/boot/head_kdump.S')
0 files changed, 0 insertions, 0 deletions