summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/ad7418.c
diff options
context:
space:
mode:
authorYuan Can <yuancan@huawei.com>2022-11-25 02:43:29 +0100
committerGuenter Roeck <linux@roeck-us.net>2022-12-01 18:20:55 +0100
commit9bdc112be727cf1ba65be79541147f960c3349d8 (patch)
tree80f3242643a1c11dcd89dd5bce0a689850fb85e9 /drivers/hwmon/ad7418.c
parenthwmon: (coretemp) fix pci device refcount leak in nv1a_ram_new() (diff)
downloadlinux-9bdc112be727cf1ba65be79541147f960c3349d8.tar.xz
linux-9bdc112be727cf1ba65be79541147f960c3349d8.zip
hwmon: (asus-ec-sensors) Add checks for devm_kcalloc
As the devm_kcalloc may return NULL, the return value needs to be checked to avoid NULL poineter dereference. Fixes: d0ddfd241e57 ("hwmon: (asus-ec-sensors) add driver for ASUS EC") Signed-off-by: Yuan Can <yuancan@huawei.com> Link: https://lore.kernel.org/r/20221125014329.121560-1-yuancan@huawei.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/ad7418.c')
0 files changed, 0 insertions, 0 deletions