Files
linux/arch
Vasily Gorbik 6ce9a22fc0 s390/mem_detect: fix detect_memory() error handling
[ Upstream commit 3400c35a40 ]

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: 73045a08cf ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:39:14 +01:00
..
2023-02-01 08:27:20 +01:00
2022-11-03 23:59:15 +09:00
2023-02-01 08:27:20 +01:00
2023-02-01 08:27:20 +01:00
2023-02-01 08:27:20 +01:00
2023-02-01 08:27:20 +01:00
2023-02-01 08:27:20 +01:00
2023-02-01 08:27:20 +01:00