Skip to content

Commit

Permalink
ALSA: hda - unlock on error in azx_interrupt()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Takashi Iwai committed May 18, 2012
1 parent a82d51e commit 6091106
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sound/pci/hda/hda_intel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 6091106

Please sign in to comment.