diff options
author | Javier Carrasco <javier.carrasco.cruz@gmail.com> | 2024-10-11 22:57:59 +0200 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2024-12-24 15:45:01 +0530 |
commit | 362f1bf98a3ecb5a2a4fcbdaa9718c8403beceb2 (patch) | |
tree | 128d4e46d7ea890310a3e4a71729c9925bf9f47c /rust/helpers/helpers.c | |
parent | ccfa3131d4a0347988e73638edea5c8281b6d2c7 (diff) |
dmaengine: mv_xor: fix child node refcount handling in early exit
The for_each_child_of_node() loop requires explicit calls to
of_node_put() to decrement the child's refcount upon early exits (break,
goto, return).
Add the missing calls in the two early exits before the goto
instructions.
Cc: stable@vger.kernel.org
Fixes: f7d12ef53ddf ("dma: mv_xor: add Device Tree binding")
Signed-off-by: Javier Carrasco <javier.carrasco.cruz@gmail.com>
Link: https://lore.kernel.org/r/20241011-dma_mv_xor_of_node_put-v1-1-3c2de819f463@gmail.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions