From: Takashi Iwai Date: Thu, 21 Apr 2016 15:37:54 +0000 (+0200) Subject: ALSA: pcxhr: Fix missing mutex unlock X-Git-Tag: v4.1.12-92~15^2~179 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=73f20d9324facbb11d030279f37a96fc7b21152d;p=users%2Fjedix%2Flinux-maple.git ALSA: pcxhr: Fix missing mutex unlock Orabug: 25227132 [ Upstream commit 67f3754b51f22b18c4820fb84062f658c30e8644 ] The commit [9bef72bdb26e: ALSA: pcxhr: Use nonatomic PCM ops] converted to non-atomic PCM ops, but shamelessly with an unbalanced mutex locking, which leads to the hangup easily. Fix it. Fixes: 9bef72bdb26e ('ALSA: pcxhr: Use nonatomic PCM ops') Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=116441 Cc: # 3.18+ Signed-off-by: Takashi Iwai Signed-off-by: Sasha Levin (cherry picked from commit faaa136bc7a4ed96ffe9585b495ec8bfac0032a8) Signed-off-by: Dhaval Giani --- diff --git a/sound/pci/pcxhr/pcxhr_core.c b/sound/pci/pcxhr/pcxhr_core.c index c5194f5b150aa..d7e71f3092998 100644 --- a/sound/pci/pcxhr/pcxhr_core.c +++ b/sound/pci/pcxhr/pcxhr_core.c @@ -1341,5 +1341,6 @@ irqreturn_t pcxhr_threaded_irq(int irq, void *dev_id) } pcxhr_msg_thread(mgr); + mutex_unlock(&mgr->lock); return IRQ_HANDLED; }