Skip to contentSkip to conversation

ASoC: wm8994: Avoid leaking pm_runtime reference on removed jack race

PATCH New Mark Brown 1 participant 1 message May 29, 2013

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/1 ASoC: wm8994: Avoid leaking pm_runtime reference on removed jack race

---
 sound/soc/codecs/wm8994.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/wm8994.c +1 -1
index 1ddb067..4aaa8a0 100644
@@ -3886,7 +3886,7 @@ static irqreturn_t wm8958_mic_irq(int irq, void *data)
 				ret);
 		} else if (!(ret & WM1811_JACKDET_LVL)) {
 			dev_dbg(codec->dev, "Ignoring removed jack\n");
-			return IRQ_HANDLED;
+			goto out;
 		}
 	} else if (!(reg & WM8958_MICD_STS)) {
 		snd_soc_jack_report(wm8994->micdet[0].jack, 0,
Signature · 1 line
1.7.10.4