mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-05 17:05:14 +07:00
![]() 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 |