android_kernel_xiaomi_sm8350/arch/powerpc/platforms
Kunwu Chan 9da4a56dd3 powerpc/powernv: Add a null pointer check in opal_powercap_init()
[ Upstream commit e123015c0ba859cf48aa7f89c5016cc6e98e018d ]

kasprintf() returns a pointer to dynamically allocated memory
which can be NULL upon failure.

Fixes: b9ef7b4b86 ("powerpc: Convert to using %pOFn instead of device_node.name")
Signed-off-by: Kunwu Chan <chentao@kylinos.cn>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20231126095739.1501990-1-chentao@kylinos.cn
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 14:34:22 -08:00
..
4xx
8xx
40x
44x powerpc/44x: select I2C for CURRITUCK 2024-01-25 14:34:22 -08:00
52xx treewide: Remove uninitialized_var() usage 2023-06-09 10:29:01 +02:00
82xx
83xx
85xx
86xx
512x
amigaone
cell
chrp
embedded6xx powerpc/wii: fix resource printk format warnings 2023-05-17 11:35:50 +02:00
maple
pasemi
powermac powerpc/pmac/smp: Drop unnecessary volatile qualifier 2023-09-02 09:19:18 +02:00
powernv powerpc/powernv: Add a null pointer check in opal_powercap_init() 2024-01-25 14:34:22 -08:00
ps3
pseries powerpc/pseries/memhp: Fix access beyond end of drmem array 2024-01-25 14:34:22 -08:00
fsl_uli1575.c
Kconfig
Kconfig.cputype
Makefile