Re: [PATCH] ASoC: atmel: Add missing of_node_put() in at91sam9g20ek_audio_probe

From: Codrin.Ciubotariu
Date: Mon Mar 07 2022 - 07:52:55 EST


On 07.03.2022 14:45, Miaoqian Lin wrote:
> This node pointer is returned by of_parse_phandle() with refcount
> incremented in this function.
> Calling of_node_put() to avoid the refcount leak.
>
> Fixes: 531f67e41dcd ("ASoC: at91sam9g20ek-wm8731: convert to dt support")
> Signed-off-by: Miaoqian Lin <linmq006@xxxxxxxxx>

Reviewed-by: Codrin Ciubotariu <codrin.ciubotariu@xxxxxxxxxxxxx>

Thanks!