diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-05-29 18:38:46 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-05-30 12:10:02 +0100 |
commit | 9e43088bb015397930d6c9ea5edba92abc0dc655 (patch) | |
tree | 749884d4e86e492f81b3ff5558d3058ca2a112d1 | |
parent | 7d6898be8db92450ce7a0afcc4238680b9703e2b (diff) | |
download | blackbird-op-linux-9e43088bb015397930d6c9ea5edba92abc0dc655.tar.gz blackbird-op-linux-9e43088bb015397930d6c9ea5edba92abc0dc655.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8994.c b/sound/soc/codecs/wm8994.c index dfd997aaadfc..19e0b2048af6 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, |