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

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



commit b9bb92e1 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: 95347845 ("hwmon: (gpio-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 119320f4
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