linux-yocto/drivers/soc
Henry Martin 8312b1f776 soc: aspeed: Add NULL check in aspeed_lpc_enable_snoop()
[ Upstream commit f1706e0e1a ]

devm_kasprintf() returns NULL when memory allocation fails. Currently,
aspeed_lpc_enable_snoop() does not check for this case, which results in a
NULL pointer dereference.

Add NULL check after devm_kasprintf() to prevent this issue.

Fixes: 3772e5da44 ("drivers/misc: Aspeed LPC snoop output using misc chardev")
Signed-off-by: Henry Martin <bsdhenrymartin@gmail.com>
Link: https://patch.msgid.link/20250401074647.21300-1-bsdhenrymartin@gmail.com
[arj: Fix Fixes: tag to use subject from 3772e5da44]
Signed-off-by: Andrew Jeffery <andrew@codeconstruct.com.au>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-06-19 15:28:25 +02:00
..
actions
amlogic
apple soc: apple: rtkit: Implement OSLog buffers properly 2025-06-04 14:42:04 +02:00
aspeed soc: aspeed: Add NULL check in aspeed_lpc_enable_snoop() 2025-06-19 15:28:25 +02:00
atmel
bcm
canaan
dove
fsl
fujitsu
gemini
hisilicon
imx
ixp4xx
lantiq
litex
loongson
mediatek
microchip
nuvoton
pxa
qcom
renesas
rockchip
samsung
sifive
starfive
sunxi
tegra
ti soc: ti: k3-socinfo: Do not use syscon helper to build regmap 2025-06-04 14:42:05 +02:00
ux500
versatile
xilinx
Kconfig
Makefile