linux/drivers/pinctrl/samsung
Nishka Dasgupta 3d2557ab75 pinctrl: samsung: Add of_node_put() before return in error path
Each iteration of for_each_child_of_node puts the previous node, but in
the case of a return from the middle of the loop, there is no put, thus
causing a memory leak. Hence add an of_node_put before the return of
exynos_eint_wkup_init() error path.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Cc: <stable@vger.kernel.org>
Fixes: 14c255d35b ("pinctrl: exynos: Add irq_chip instance for Exynos7 wakeup interrupts")
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
2019-10-01 20:22:04 +02:00
..
Kconfig pinctrl: samsung: Remove support for Exynos5440 2018-05-02 19:08:55 +02:00
Makefile pinctrl: samsung: Remove support for Exynos5440 2018-05-02 19:08:55 +02:00
pinctrl-exynos-arm.c pinctrl: samsung: fix leaked of_node references 2019-04-23 10:59:47 +02:00
pinctrl-exynos-arm64.c pinctrl: samsung: Document required order of banks 2018-04-18 17:48:39 +02:00
pinctrl-exynos.c pinctrl: samsung: Add of_node_put() before return in error path 2019-10-01 20:22:04 +02:00
pinctrl-exynos.h pinctrl: samsung: Fix suspend/resume for Exynos5433 GPF1..5 banks 2018-05-23 21:23:19 +02:00
pinctrl-s3c24xx.c pinctrl: samsung: Validate alias coming from DT 2018-03-08 13:02:26 +01:00
pinctrl-s3c64xx.c treewide: Use struct_size() for devm_kmalloc() and friends 2018-06-06 11:15:43 -07:00
pinctrl-samsung.c pinctrl: Use of_node_name_eq for node name comparisons 2018-12-14 16:03:03 +01:00
pinctrl-samsung.h pinctrl: Include <linux/gpio/driver.h> nothing else 2018-09-14 15:10:57 +02:00