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

hwmon: (gpio-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: 95347845 ("hwmon: (gpio-fan) Use devm_thermal_of_cooling_device_register")
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 4b972a01
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