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
Merge tag 'armsoc-soc' of git://git.kernel.org/pub/scm/linux/kernel/git/arm/arm-soc
[firefly-linux-kernel-4.4.55.git]
/
arch
/
arm
/
mach-shmobile
/
pm-rmobile.c
diff --git
a/arch/arm/mach-shmobile/pm-rmobile.c
b/arch/arm/mach-shmobile/pm-rmobile.c
index 89068c8ec50f2c76342cbf77a6e5d8d74643935f..46d0a1ddce755e80ffc3f8f1bc6a510287da7906 100644
(file)
--- a/
arch/arm/mach-shmobile/pm-rmobile.c
+++ b/
arch/arm/mach-shmobile/pm-rmobile.c
@@
-313,8
+313,10
@@
static int __init rmobile_add_pm_domains(void __iomem *base,
}
pd = kzalloc(sizeof(*pd), GFP_KERNEL);
- if (!pd)
+ if (!pd) {
+ of_node_put(np);
return -ENOMEM;
+ }
pd->genpd.name = np->name;
pd->base = base;