diff options
author | Guenter Roeck <linux@roeck-us.net> | 2019-06-07 22:27:06 +0200 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2019-06-24 03:32:34 +0200 |
commit | 5696e4aaabf2a6bae0fe8b4abf17fe17c2b03beb (patch) | |
tree | f28c240ade7c7c6bc59aa862d670684c93080988 /drivers/hwmon/f71805f.c | |
parent | hwmon: (gpio-fan) Check return value from devm_add_action_or_reset (diff) | |
download | linux-5696e4aaabf2a6bae0fe8b4abf17fe17c2b03beb.tar.xz linux-5696e4aaabf2a6bae0fe8b4abf17fe17c2b03beb.zip |
hwmon: (pwm-fan) Check return value from devm_add_action_or_reset
devm_add_action_or_reset() can fail due to a memory allocation failure.
Check for it and return the error if that happens.
Fixes: 37bcec5d9f71 ("hwmon: (pwm-fan) Use devm_thermal_of_cooling_device_register")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/f71805f.c')
0 files changed, 0 insertions, 0 deletions