diff options
| author | Yuan Can <[email protected]> | 2022-11-25 01:43:29 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2022-12-01 09:20:55 -0800 |
| commit | 9bdc112be727cf1ba65be79541147f960c3349d8 (patch) | |
| tree | 80f3242643a1c11dcd89dd5bce0a689850fb85e9 /drivers/usb/cdns3/cdns3-pci-wrap.c | |
| parent | 7dec14537c5906b8bf40fd6fd6d9c3850f8df11d (diff) | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-pci-wrap.c')
0 files changed, 0 insertions, 0 deletions