summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-exynos
diff options
context:
space:
mode:
authorVladimir Zapolskiy <vz@mleia.com>2015-07-31 03:09:50 +0300
committerKrzysztof Kozlowski <k.kozlowski@samsung.com>2015-07-31 10:12:17 +0900
commit3e9f798784b30293012682021d5a0352f78658b8 (patch)
tree8c48f670e1f4fd5ac4a0df4088c1e82c0ee27d97 /arch/arm/mach-exynos
parent27bbd23fe8e66edfff4c0e92eb9eb39c37856831 (diff)
downloadop-kernel-dev-3e9f798784b30293012682021d5a0352f78658b8.zip
op-kernel-dev-3e9f798784b30293012682021d5a0352f78658b8.tar.gz
ARM: EXYNOS: fix double of_node_put() on error path
The change removes the second of_node_put(), if for_each_compatible_node() body execution is not terminated. This prevents from object refcounter overflow over zero in OF_DYNAMIC build. Signed-off-by: Vladimir Zapolskiy <vz@mleia.com> Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Diffstat (limited to 'arch/arm/mach-exynos')
-rw-r--r--arch/arm/mach-exynos/pm_domains.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/arm/mach-exynos/pm_domains.c b/arch/arm/mach-exynos/pm_domains.c
index 5121baa..4a87e86 100644
--- a/arch/arm/mach-exynos/pm_domains.c
+++ b/arch/arm/mach-exynos/pm_domains.c
@@ -148,7 +148,6 @@ static __init int exynos4_pm_init_power_domain(void)
pr_warn("%s: failed to map memory\n", __func__);
kfree_const(pd->pd.name);
kfree(pd);
- of_node_put(np);
continue;
}
OpenPOWER on IntegriCloud