WSL2-Linux-Kernel/drivers/pinctrl/stm32
Nishka Dasgupta 474137c911 pinctrl: stm32: stm32: Add of_node_put() before return
Each iteration of for_each_child_of_node and
for_each_available_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>
Link: https://lore.kernel.org/r/20190808075457.16109-1-nishkadg.linux@gmail.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
2019-08-10 10:21:51 +02:00
..
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile pinctrl: stm32: add STM32F769 MCU support 2018-01-22 09:28:08 +01:00
pinctrl-stm32.c pinctrl: stm32: stm32: Add of_node_put() before return 2019-08-10 10:21:51 +02:00
pinctrl-stm32.h pinctrl: stm32: add suspend/resume management 2019-05-24 13:21:15 +02:00
pinctrl-stm32f429.c pinctrl: stm32: Fix copyright 2017-12-02 16:23:08 +01:00
pinctrl-stm32f469.c pinctrl: stm32: Fix copyright 2017-12-02 16:23:08 +01:00
pinctrl-stm32f746.c pinctrl: stm32: Fix copyright 2017-12-02 16:23:08 +01:00
pinctrl-stm32f769.c pinctrl: stm32: add STM32F769 MCU support 2018-01-22 09:28:08 +01:00
pinctrl-stm32h743.c pinctrl: stm32: Fix copyright 2017-12-02 16:23:08 +01:00
pinctrl-stm32mp157.c pinctrl: stm32: Enable suspend/resume for stm32mp157c SoC 2019-05-24 13:21:45 +02:00