android_kernel_xiaomi_sm8350/arch/mips/generic
Colin Ian King 426fed211b MIPS: generic/yamon-dt: fix uninitialized variable error
[ Upstream commit 255e51da15baed47531beefd02f222e4dc01f1c1 ]

In the case where fw_getenv returns an error when fetching values
for ememsizea and memsize then variable phys_memsize is not assigned
a variable and will be uninitialized on a zero check of phys_memsize.
Fix this by initializing phys_memsize to zero.

Cleans up cppcheck error:
arch/mips/generic/yamon-dt.c💯7: error: Uninitialized variable: phys_memsize [uninitvar]

Fixes: f41d2430bb ("MIPS: generic/yamon-dt: Support > 256MB of RAM")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-11-26 10:47:19 +01:00
..
board-boston.its.S MIPS: generic: Update node names to avoid unit addresses 2021-06-30 08:47:44 -04:00
board-ni169445.its.S MIPS: generic: Update node names to avoid unit addresses 2021-06-30 08:47:44 -04:00
board-ocelot.c
board-ocelot.its.S MIPS: generic: Update node names to avoid unit addresses 2021-06-30 08:47:44 -04:00
board-ranchu.c
board-sead3.c
board-xilfpga.its.S MIPS: generic: Update node names to avoid unit addresses 2021-06-30 08:47:44 -04:00
init.c
irq.c
Kconfig MIPS: mscc: add PCB120 to the ocelot fitImage 2018-10-09 10:38:29 -07:00
Makefile
Platform MIPS: mscc: add PCB120 to the ocelot fitImage 2018-10-09 10:38:29 -07:00
proc.c
vmlinux.its.S MIPS: generic: Update node names to avoid unit addresses 2021-06-30 08:47:44 -04:00
yamon-dt.c MIPS: generic/yamon-dt: fix uninitialized variable error 2021-11-26 10:47:19 +01:00