Skip to contentSkip to conversation

ALSA: pcxhr: Fix missing mutex unlock

PATCH New Takashi Iwai 1 participant 1 message Apr 21, 2016 Sound

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ALSA: pcxhr: Fix missing mutex unlock

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

---
 sound/pci/pcxhr/pcxhr_core.c | 1 +
 1 file changed, 1 insertion(+)
sound/pci/pcxhr/pcxhr_core.c +1 -0
index c5194f5b150a..d7e71f309299 100644
@@ -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;
 }
Signature · 1 line
2.8.1