diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-05-18 03:36:11 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2012-05-18 09:44:10 -0400 |
commit | 6091106297933c5cf0e4470df9a5f4e703674391 (patch) | |
tree | a5a43cb1eea6b64e47192242b9d8a92a87e68ca2 /sound | |
parent | a82d51ed24bb7994f1f3dff18ec2eefe19385840 (diff) |
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) | |||
1266 | 1266 | ||
1267 | spin_lock(&chip->reg_lock); | 1267 | spin_lock(&chip->reg_lock); |
1268 | 1268 | ||
1269 | if (chip->disabled) | 1269 | if (chip->disabled) { |
1270 | spin_unlock(&chip->reg_lock); | ||
1270 | return IRQ_NONE; | 1271 | return IRQ_NONE; |
1272 | } | ||
1271 | 1273 | ||
1272 | status = azx_readl(chip, INTSTS); | 1274 | status = azx_readl(chip, INTSTS); |
1273 | if (status == 0) { | 1275 | if (status == 0) { |