aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-29 18:38:46 +0100
committerMark Brown <broonie@opensource.wolfsonmicro.com>2013-05-30 12:10:02 +0100
commit9e43088bb015397930d6c9ea5edba92abc0dc655 (patch)
tree749884d4e86e492f81b3ff5558d3058ca2a112d1
parent7d6898be8db92450ce7a0afcc4238680b9703e2b (diff)
downloadkernel_goldelico_gta04-9e43088bb015397930d6c9ea5edba92abc0dc655.zip
kernel_goldelico_gta04-9e43088bb015397930d6c9ea5edba92abc0dc655.tar.gz
kernel_goldelico_gta04-9e43088bb015397930d6c9ea5edba92abc0dc655.tar.bz2
ASoC: wm8994: Avoid leaking pm_runtime reference on removed jack race
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r--sound/soc/codecs/wm8994.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c
index dfd997a..19e0b20 100644
--- a/sound/soc/codecs/wm8994.c
+++ b/sound/soc/codecs/wm8994.c
@@ -3836,7 +3836,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,