提交 3e9f7987 编写于 作者: V Vladimir Zapolskiy 提交者: Krzysztof Kozlowski

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: NVladimir Zapolskiy <vz@mleia.com>
Signed-off-by: NKrzysztof Kozlowski <k.kozlowski@samsung.com>
上级 27bbd23f
......@@ -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;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册