Commit 829f46af authored by Dan Carpenter's avatar Dan Carpenter Committed by Linus Torvalds

cciss: unlock on error path

We take the spin_lock again in fail_all_cmds() so we need to unlock here.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarSteve Cameron <scameron@beardog.cce.hp.com>
Cc: Jens Axboe <jens.axboe@oracle.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent c6eb69ac
...@@ -3341,6 +3341,7 @@ static irqreturn_t do_cciss_intr(int irq, void *dev_id) ...@@ -3341,6 +3341,7 @@ static irqreturn_t do_cciss_intr(int irq, void *dev_id)
printk(KERN_WARNING printk(KERN_WARNING
"cciss: controller cciss%d failed, stopping.\n", "cciss: controller cciss%d failed, stopping.\n",
h->ctlr); h->ctlr);
spin_unlock_irqrestore(CCISS_LOCK(h->ctlr), flags);
fail_all_cmds(h->ctlr); fail_all_cmds(h->ctlr);
return IRQ_HANDLED; return IRQ_HANDLED;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment