kernel_samsung_a53x/arch/powerpc
Zhang Zekun a0961c2731 powerpc/kexec: Fix return of uninitialized variable
[ Upstream commit 83b5a407fbb73e6965adfb4bd0a803724bf87f96 ]

of_property_read_u64() can fail and leave the variable uninitialized,
which will then be used. Return error if reading the property failed.

Fixes: 2e6bd221d96f ("powerpc/kexec_file: Enable early kernel OPAL calls")
Signed-off-by: Zhang Zekun <zhangzekun11@huawei.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://patch.msgid.link/20240930075628.125138-1-zhangzekun11@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-12-17 13:24:09 +01:00
..
boot powerpc/boot: Only free if realloc() succeeds 2024-11-23 23:20:46 +01:00
configs powerpc/configs: Update defconfig with now user-visible CONFIG_FSL_IFC 2024-11-23 23:20:18 +01:00
crypto Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
include powerpc/sstep: make emulate_vsx_load and emulate_vsx_store static 2024-12-17 13:24:09 +01:00
kernel Revert "powerpc/mm: Fix boot warning with hugepages and CONFIG_DEBUG_VIRTUAL" 2024-11-24 00:23:35 +01:00
kexec powerpc/kexec: Fix return of uninitialized variable 2024-12-17 13:24:09 +01:00
kvm powerpc: fix a file leak in kvm_vcpu_ioctl_enable_cap() 2024-11-23 23:20:18 +01:00
lib powerpc/sstep: make emulate_vsx_load and emulate_vsx_store static 2024-12-17 13:24:09 +01:00
math-emu Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mm Revert "powerpc/mm: Fix boot warning with hugepages and CONFIG_DEBUG_VIRTUAL" 2024-11-24 00:23:35 +01:00
net Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
oprofile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
perf powerpc/hv-gpci: Fix the H_GET_PERF_COUNTER_INFO hcall return value checks 2024-11-19 08:44:55 +01:00
platforms powerpc/pseries: Fix dtl_access_lock to be a rw_semaphore 2024-12-17 13:24:08 +01:00
purgatory Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sysdev powerpc/xics: Check return value of kasprintf in icp_native_map_one_cpu 2024-11-23 23:20:45 +01:00
tools Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xmon powerpc/xmon: Fix disassembly CPU feature checks 2024-11-23 23:20:10 +01:00
Kbuild Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig.debug Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile.postlink Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00