summaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-05-18 10:36:11 +0300
committerTakashi Iwai <tiwai@suse.de>2012-05-18 15:44:10 +0200
commit6091106297933c5cf0e4470df9a5f4e703674391 (patch)
treea5a43cb1eea6b64e47192242b9d8a92a87e68ca2 /sound
parenta82d51ed24bb7994f1f3dff18ec2eefe19385840 (diff)
downloadlinux-3.10-6091106297933c5cf0e4470df9a5f4e703674391.tar.gz
linux-3.10-6091106297933c5cf0e4470df9a5f4e703674391.tar.bz2
linux-3.10-6091106297933c5cf0e4470df9a5f4e703674391.zip
ALSA: hda - unlock on error in azx_interrupt()
There is an spin_unlock() missing on this error path. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/pci/hda/hda_intel.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index e7a60402b23..d0627723f7a 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1266,8 +1266,10 @@ static irqreturn_t azx_interrupt(int irq, void *dev_id)
spin_lock(&chip->reg_lock);
- if (chip->disabled)
+ if (chip->disabled) {
+ spin_unlock(&chip->reg_lock);
return IRQ_NONE;
+ }
status = azx_readl(chip, INTSTS);
if (status == 0) {