linux_dsm_epyc7002/drivers/pinctrl/spear
Nishka Dasgupta 8df92d676c pinctrl: spear: spear: Add of_node_put() before return
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 in
two places.
Issue found with Coccinelle.

Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20190804154948.4584-1-nishkadg.linux@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2019-08-06 16:18:49 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pinctrl-plgpio.c treewide: devm_kzalloc() -> devm_kcalloc() 2018-06-12 16:19:22 -07:00
pinctrl-spear3xx.c
pinctrl-spear3xx.h
pinctrl-spear300.c pinctrl: spear: make bool drivers explicitly non-modular 2017-02-13 14:25:55 +01:00
pinctrl-spear310.c pinctrl: spear: make bool drivers explicitly non-modular 2017-02-13 14:25:55 +01:00
pinctrl-spear320.c pinctrl: spear: make bool drivers explicitly non-modular 2017-02-13 14:25:55 +01:00
pinctrl-spear1310.c pinctrl: spear: make bool drivers explicitly non-modular 2017-02-13 14:25:55 +01:00
pinctrl-spear1340.c pinctrl: spear: make bool drivers explicitly non-modular 2017-02-13 14:25:55 +01:00
pinctrl-spear.c pinctrl: spear: spear: Add of_node_put() before return 2019-08-06 16:18:49 +02:00
pinctrl-spear.h pinctrl: Include <linux/gpio/driver.h> nothing else 2018-09-14 15:10:57 +02:00