Re: [PATCH] ASoC: rsnd: Fix an error handling path in 'rsnd_node_count()'

From: Kuninori Morimoto
Date: Mon Oct 18 2021 - 19:13:39 EST



Hi

> If we return before the end of the 'for_each_child_of_node()' iterator, the
> reference taken on 'np' must be released.
>
> Add the missing 'of_node_put()' call.
>
> Fixes: c413983eb66a ("ASoC: rsnd: adjust disabled module")
> Signed-off-by: Christophe JAILLET <christophe.jaillet@xxxxxxxxxx>
> ---

Reviewed-by: Kuninori Morimoto <kuninori.morimoto.gx@xxxxxxxxxxx>

Thank you for your help !!

Best regards
---
Kuninori Morimoto