mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-29 17:25:38 +00:00
77adf4b1f3
This loop requires explicit calls to of_node_put() upon early exits
(break, goto, return) to decrement the child refcounter and avoid memory
leaks if the child is not required out of the loop.
A more robust solution is using the scoped variant of the macro, which
automatically calls of_node_put() when the child goes out of scope.
Cc: stable@vger.kernel.org
Fixes:
|
||
---|---|---|
.. | ||
hisi-spmi-controller.c | ||
Kconfig | ||
Makefile | ||
spmi-devres.c | ||
spmi-mtk-pmif.c | ||
spmi-pmic-arb.c | ||
spmi.c |