aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/gcc-plugins/structleak_plugin.c
diff options
context:
space:
mode:
authorDaniel Wagner <[email protected]>2021-02-12 09:30:15 +0000
committerChristoph Hellwig <[email protected]>2021-03-05 12:41:03 +0000
commit78570f8873c8cd44c12714c7fa7db2601ec5617d (patch)
tree6949049843f73c1a3096f3ec3f28e0f04bafa4e6 /scripts/gcc-plugins/structleak_plugin.c
parentnvme-pci: add quirks for Lexar 256GB SSD (diff)
downloadkernel-78570f8873c8cd44c12714c7fa7db2601ec5617d.tar.gz
kernel-78570f8873c8cd44c12714c7fa7db2601ec5617d.zip
nvme-hwmon: Return error code when registration fails
The hwmon pointer wont be NULL if the registration fails. Though the exit code path will assign it to ctrl->hwmon_device. Later nvme_hwmon_exit() will try to free the invalid pointer. Avoid this by returning the error code from hwmon_device_register_with_info(). Fixes: ed7770f66286 ("nvme/hwmon: rework to avoid devm allocation") Signed-off-by: Daniel Wagner <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/structleak_plugin.c')
0 files changed, 0 insertions, 0 deletions