]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ARM: EXYNOS: Fix double of_node_put() when parsing child power domains
authorKrzysztof Kozlowski <k.kozlowski@samsung.com>
Mon, 12 Oct 2015 19:32:49 +0000 (04:32 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Nov 2015 22:37:34 +0000 (14:37 -0800)
commit81d84be24eb405e21fae883f5fbc390021e05bda
treec4cabe4acab698f851f76f0df54eb0078dc814f1
parent442cdeddf4052789537b75c7bfa2db3a6308c1e6
ARM: EXYNOS: Fix double of_node_put() when parsing child power domains

commit 51a6256b00008a3c520f6f31bcd62cd15cb05960 upstream.

On each next iteration of for_each_compatible_node() the reference
counter for current device node is already decreased by the loop
iterator. The manual call to of_node_get() is required only on loop
break which is not happening here.

The double of_node_get() (with enabled CONFIG_OF_DYNAMIC) lead to
decreasing the counter below expected, initial value.

Fixes: fe4034a3fad7 ("ARM: EXYNOS: Add missing of_node_put() when parsing power domains")
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-exynos/pm_domains.c