mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-01 10:43:43 +00:00
2ff110bbe9
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. Issue found with Coccinelle. Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com> Link: https://lore.kernel.org/r/20190815060718.3286-1-nishkadg.linux@gmail.com Reviewed-by: Neil Armstrong <narmstrong@baylibre.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> |
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
pinctrl-meson8-pmx.c | ||
pinctrl-meson8-pmx.h | ||
pinctrl-meson8.c | ||
pinctrl-meson8b.c | ||
pinctrl-meson-axg-pmx.c | ||
pinctrl-meson-axg-pmx.h | ||
pinctrl-meson-axg.c | ||
pinctrl-meson-g12a.c | ||
pinctrl-meson-gxbb.c | ||
pinctrl-meson-gxl.c | ||
pinctrl-meson.c | ||
pinctrl-meson.h |