Re: [PATCH] ASoC: fsl-asoc-card: Fix codec device leak in fsl_asoc_card_probe()

From: Mark Brown

Date: Thu Sep 17 2026 - 18:30:18 EST


On Thu, Sep 17, 2026 at 04:56:54PM +0000, Wentao Liang wrote:
> The codec device reference taken by of_find_i2c_device_by_node() is kept
> in codec_dev[] and never released, leaking the I2C client on both the
> error paths and the successful registration path. The same slot also
> holds the reference of_find_device_by_node() takes when the codec is a
> platform device, which leaks in the same way.

This doesn't apply against current code, please check and resend.

Attachment: signature.asc
Description: PGP signature