diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-05-18 09:36:11 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-05-18 15:44:10 +0200 |
commit | 6091106297933c5cf0e4470df9a5f4e703674391 (patch) | |
tree | a5a43cb1eea6b64e47192242b9d8a92a87e68ca2 /sound | |
parent | ALSA: hda - Support VGA-switcheroo (diff) | |
download | linux-6091106297933c5cf0e4470df9a5f4e703674391.tar.xz linux-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.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c index e7a60402b23f..d0627723f7a8 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) { |