summaryrefslogtreecommitdiffstats
path: root/scripts/clang-tools/gen_compile_commands.py
diff options
context:
space:
mode:
authorHenry Martin <bsdhenrymartin@gmail.com>2025-04-02 21:50:36 +0800
committerJakub Kicinski <kuba@kernel.org>2025-04-04 07:30:51 -0700
commitfda8c491db2a90ff3e6fbbae58e495b4ddddeca3 (patch)
treea8297962d844c04c7958a1915432daef407220e4 /scripts/clang-tools/gen_compile_commands.py
parent613f727c5b2adb19d1aa0b7876e33e4887a7a047 (diff)
downloadlinux-fda8c491db2a90ff3e6fbbae58e495b4ddddeca3.tar.gz
linux-fda8c491db2a90ff3e6fbbae58e495b4ddddeca3.tar.bz2
linux-fda8c491db2a90ff3e6fbbae58e495b4ddddeca3.zip
arcnet: Add NULL check in com20020pci_probe()
devm_kasprintf() returns NULL when memory allocation fails. Currently, com20020pci_probe() does not check for this case, which results in a NULL pointer dereference. Add NULL check after devm_kasprintf() to prevent this issue and ensure no resources are left allocated. Fixes: 6b17a597fc2f ("arcnet: restoring support for multiple Sohard Arcnet cards") Signed-off-by: Henry Martin <bsdhenrymartin@gmail.com> Link: https://patch.msgid.link/20250402135036.44697-1-bsdhenrymartin@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'scripts/clang-tools/gen_compile_commands.py')
0 files changed, 0 insertions, 0 deletions