Skip to content
Commit cccd3b76 authored by Guenter Roeck's avatar Guenter Roeck Committed by Paul Gortmaker
Browse files

hwmon: (pwm-fan) Check return value from devm_add_action_or_reset



commit 5696e4aa upstream.

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>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent b5a8b6d1
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