Check the return value of get_temp, which can fail. If it does, then
unlock and return the error code.
Signed-off-by: Rhyland Klein
---
drivers/thermal/thermal_helpers.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/thermal/thermal_helpers.c
Check the return value of get_temp, which can fail. If it does, then
unlock and return the error code.
Signed-off-by: Rhyland Klein
---
drivers/thermal/thermal_helpers.c | 4
1 file changed, 4 insertions(+)
diff --git a/drivers/thermal/thermal_helpers.c
2 matches
Mail list logo