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>
diff --git a/sound/pci/hda/hda_intel.c b/sound/pci/hda/hda_intel.c
index e7a6040..d062772 100644
--- a/sound/pci/hda/hda_intel.c
+++ b/sound/pci/hda/hda_intel.c
@@ -1266,8 +1266,10 @@
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) {