projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
ARM: cpuidle: Fix error return code
[firefly-linux-kernel-4.4.55.git]
/
drivers
/
cpuidle
/
cpuidle-arm.c
diff --git
a/drivers/cpuidle/cpuidle-arm.c
b/drivers/cpuidle/cpuidle-arm.c
index e342565e8715e95af6c76a80ca393d8fcfada66a..1855b9ee807f28fa0fb75212af944542f6d9f1ac 100644
(file)
--- a/
drivers/cpuidle/cpuidle-arm.c
+++ b/
drivers/cpuidle/cpuidle-arm.c
@@
-135,6
+135,7
@@
static int __init arm_idle_init(void)
dev = kzalloc(sizeof(*dev), GFP_KERNEL);
if (!dev) {
pr_err("Failed to allocate cpuidle device\n");
+ ret = -ENOMEM;
goto out_fail;
}
dev->cpu = cpu;