aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorHenry Martin <[email protected]>2025-05-15 06:30:44 +0000
committerArnd Bergmann <[email protected]>2025-05-21 21:07:23 +0000
commitf1706e0e1a74b095cbc60375b9b1e6205f5f4c98 (patch)
treef4b69549da60efe9027e0be14b140f9d962f06f5 /scripts/gcc-plugins/sancov_plugin.c
parentsoc: aspeed: lpc: Fix impossible judgment condition (diff)
downloadkernel-f1706e0e1a74b095cbc60375b9b1e6205f5f4c98.tar.gz
kernel-f1706e0e1a74b095cbc60375b9b1e6205f5f4c98.zip
soc: aspeed: Add NULL check in aspeed_lpc_enable_snoop()
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: 3772e5da4454 ("drivers/misc: Aspeed LPC snoop output using misc chardev") Signed-off-by: Henry Martin <[email protected]> Link: https://patch.msgid.link/[email protected] [arj: Fix Fixes: tag to use subject from 3772e5da4454] Signed-off-by: Andrew Jeffery <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions