mirror of
https://github.com/torvalds/linux.git
synced 2025-11-02 17:49:03 +02:00
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 | ||