linux-yocto/drivers/soc
Henry Martin d62a589eaa 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-27 11:07:14 +01:00
..
actions
amlogic
apple soc: apple: rtkit: Implement OSLog buffers properly 2025-06-04 14:40:10 +02:00
aspeed soc: aspeed: Add NULL check in aspeed_lpc_enable_snoop() 2025-06-27 11:07:14 +01:00
atmel
bcm
canaan
dove
fsl
fujitsu
gemini
imx pmdomain: imx: gpcv2: use proper helper for property detection 2025-06-04 14:40:13 +02:00
ixp4xx
lantiq
litex
mediatek soc: mediatek: mtk-devapc: Fix leaking IO map on driver remove 2025-03-07 16:56:32 +01:00
microchip
pxa
qcom soc: qcom: pdr: Fix the potential deadlock 2025-03-28 21:59:01 +01:00
renesas
rockchip
samsung soc: samsung: exynos-chipid: Add NULL pointer check in exynos_chipid_probe() 2025-04-25 10:43:40 +02:00
sifive
sunxi
tegra
ti soc: ti: k3-socinfo: Do not use syscon helper to build regmap 2025-06-04 14:40:11 +02:00
ux500
versatile
xilinx
Kconfig
Makefile