android_kernel_asus_sm8350/drivers/pinctrl/samsung
Krzysztof Kozlowski e05221d201 pinctrl: samsung: drop pin banks references on error paths
commit 50ebd19e3585b9792e994cfa8cbee8947fe06371 upstream.

The driver iterates over its devicetree children with
for_each_child_of_node() and stores for later found node pointer.  This
has to be put in error paths to avoid leak during re-probing.

Fixes: ab663789d6 ("pinctrl: samsung: Match pin banks with their device nodes")
Cc: <stable@vger.kernel.org>
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Chanho Park <chanho61.park@samsung.com>
Link: https://lore.kernel.org/r/20220111201426.326777-2-krzysztof.kozlowski@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-04-15 14:17:59 +02:00
..
Kconfig
Makefile
pinctrl-exynos-arm64.c
pinctrl-exynos-arm.c pinctrl: samsung: fix leaked of_node references 2019-04-23 10:59:47 +02:00
pinctrl-exynos.c pinctrl: samsung: use 'int' for register masks in Exynos 2021-05-19 10:08:22 +02: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: drop pin banks references on error paths 2022-04-15 14:17:59 +02:00
pinctrl-samsung.h