[PATCH] ASoC: fsl: Fix refcount leak in imx_sgtl5000_probe

Fabio Estevam festevam at gmail.com
Wed May 11 12:32:19 CEST 2022


On Wed, May 11, 2022 at 3:58 AM Miaoqian Lin <linmq006 at gmail.com> wrote:
>
> of_find_i2c_device_by_node() takes a reference,
> In error paths, we should call put_device() to drop
> the reference to aviod refount leak.

s/aviod refount/avoid refcount

> Fixes: 81e8e4926167 ("ASoC: fsl: add sgtl5000 clock support for imx-sgtl5000")
> Signed-off-by: Miaoqian Lin <linmq006 at gmail.com>

Reviewed-by: Fabio Estevam <festevam at gmail.com>


More information about the Alsa-devel mailing list