[PATCH 3/6] ASoC: wm8903: Free the IRQ when component registration fails

Charles Keepax ckeepax at opensource.cirrus.com
Wed Dec 2 09:44:08 PST 2026


On Tue, Dec 01, 2026 at 11:23:34PM +0400, Arina Kharlamova via B4 Relay wrote:
> From: Arina Kharlamova <arina.kharlamova at mbzuai.ac.ae>
> 
> wm8903_i2c_probe() requests the interrupt with wm8903 as dev_id before
> it registers the component. If devm_snd_soc_register_component()
> fails, the error path only disables the regulators. The interrupt
> stays requested while wm8903, which is devm allocated, is freed.
> 
> Free the interrupt on that error path.
> 
> Fixes: b7c95d9146c8 ("ASoC: wm8903: Move interrupt request to I2C probe")
> Signed-off-by: Arina Kharlamova <arina.kharlamova at mbzuai.ac.ae>
> ---

Reviewed-by: Charles Keepax <ckeepax at opensource.cirrus.com>

Thanks,
Charles



More information about the linux-arm-kernel mailing list