[PATCH v2 2/2] ARM: EXYNOS: fix double of_node_put() on error path
Vladimir Zapolskiy
vz at mleia.com
Thu Jul 30 17:09:50 PDT 2015
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 at mleia.com>
---
Changes from v1 to v2:
* split a single change v1 into two
arch/arm/mach-exynos/pm_domains.c | 1 -
1 file changed, 1 deletion(-)
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;
}
--
2.1.4
More information about the linux-arm-kernel
mailing list