From: Zheyu Ma Date: Tue, 10 May 2022 15:32:51 +0000 (+0800) Subject: ASoC: wm8903: Fix the error handling of wm8903_i2c_probe() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=83d1b65d4cbe6fb0bbdacc18c1f4ad0450275d8f;p=linux.git ASoC: wm8903: Fix the error handling of wm8903_i2c_probe() The driver should goto label 'err' when failing to request the irq. Signed-off-by: Zheyu Ma Acked-by: Charles Keepax Link: https://lore.kernel.org/r/20220510153251.1741210-7-zheyuma97@gmail.com Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index ddcef11dce7c8..3c95c2aea5152 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c @@ -2131,7 +2131,7 @@ static int wm8903_i2c_probe(struct i2c_client *i2c) if (ret != 0) { dev_err(wm8903->dev, "Failed to request IRQ: %d\n", ret); - return ret; + goto err; } /* Enable write sequencer interrupts */