projects
/
cascardo
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
thermal: rcar_thermal: Fix priv->zone error handling
[cascardo/linux.git]
/
drivers
/
thermal
/
rcar_thermal.c
diff --git
a/drivers/thermal/rcar_thermal.c
b/drivers/thermal/rcar_thermal.c
index
71a3392
..
5f81792
100644
(file)
--- a/
drivers/thermal/rcar_thermal.c
+++ b/
drivers/thermal/rcar_thermal.c
@@
-504,6
+504,7
@@
static int rcar_thermal_probe(struct platform_device *pdev)
if (IS_ERR(priv->zone)) {
dev_err(dev, "can't register thermal zone\n");
ret = PTR_ERR(priv->zone);
+ priv->zone = NULL;
goto error_unregister;
}