projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8e54d44
)
thermal: cpu_cooling: propagate error returned by idr_alloc()
author
Viresh Kumar
<viresh.kumar@linaro.org>
Thu, 4 Dec 2014 04:11:54 +0000
(09:41 +0530)
committer
Eduardo Valentin
<edubezval@gmail.com>
Mon, 8 Dec 2014 16:08:56 +0000
(12:08 -0400)
We aren't supposed to return our own error type here. Return what we got.
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
drivers/thermal/cpu_cooling.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/thermal/cpu_cooling.c
b/drivers/thermal/cpu_cooling.c
index d57b8bb7d4232e6a9806d9d13e2a625233f4f175..5c9a2efeec2214051e9218df0e38a976b1f81954 100644
(file)
--- a/
drivers/thermal/cpu_cooling.c
+++ b/
drivers/thermal/cpu_cooling.c
@@
-485,7
+485,7
@@
__cpufreq_cooling_register(struct device_node *np,
ret = get_idr(&cpufreq_idr, &cpufreq_dev->id);
if (ret) {
kfree(cpufreq_dev);
- return ERR_PTR(
-EINVAL
);
+ return ERR_PTR(
ret
);
}
snprintf(dev_name, sizeof(dev_name), "thermal-cpufreq-%d",