]> git.baikalelectronics.ru Git - kernel.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)
committerKukjin Kim <kgene@kernel.org>
Mon, 12 Oct 2015 19:37:17 +0000 (04:37 +0900)
commit0ae6954bc8885dfcc854f5f9003d42a0c092b2e4
tree11136d56cbee1c172fac585bb36057e19a933e3c
parent48fdd7874f07dfb3a661edca7ea1d4807bb4ccb0
ARM: EXYNOS: Fix double of_node_put() when parsing child power domains

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: 1ae6b4faea36 ("ARM: EXYNOS: Add missing of_node_put() when parsing power domains")
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Kukjin Kim <kgene@kernel.org>
arch/arm/mach-exynos/pm_domains.c