linux/drivers/pinctrl/samsung
Krzysztof Kozlowski 1dc61ab2a1 pinctrl: samsung: Fix device node refcount leaks in S3C64xx wakeup controller init
commit 7f028caadf upstream.

In s3c64xx_eint_eint0_init() the for_each_child_of_node() loop is used
with a break to find a matching child node.  Although each iteration of
for_each_child_of_node puts the previous node, but early exit from loop
misses it.  This leads to leak of device node.

Cc: <stable@vger.kernel.org>
Fixes: 61dd726131 ("pinctrl: Add pinctrl-s3c64xx driver")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-17 19:56:39 +01:00
..
Kconfig
Makefile
pinctrl-exynos-arm.c
pinctrl-exynos-arm64.c
pinctrl-exynos.c pinctrl: samsung: Fix device node refcount leaks in Exynos wakeup controller init 2019-12-17 19:56:38 +01:00
pinctrl-exynos.h
pinctrl-s3c24xx.c pinctrl: samsung: Fix device node refcount leaks in S3C24xx wakeup controller init 2019-12-17 19:56:38 +01:00
pinctrl-s3c64xx.c pinctrl: samsung: Fix device node refcount leaks in S3C64xx wakeup controller init 2019-12-17 19:56:39 +01:00
pinctrl-samsung.c pinctrl: samsung: Fix device node refcount leaks in init code 2019-12-17 19:56:39 +01:00
pinctrl-samsung.h