Skip to content

Commit

Permalink
ARM: EXYNOS: fix double of_node_put() on error path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vladimir Zapolskiy authored and Krzysztof Kozlowski committed Jul 31, 2015
1 parent 27bbd23 commit 3e9f798
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/arm/mach-exynos/pm_domains.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 3e9f798

Please sign in to comment.