Skip to content
Commit 5696e4aa authored by Guenter Roeck's avatar Guenter Roeck
Browse files

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: 37bcec5d ("hwmon: (pwm-fan) Use devm_thermal_of_cooling_device_register")
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent b9bb92e1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment