All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] cciss: unlock on error path
@ 2010-04-01 15:54 ` Dan Carpenter
  0 siblings, 0 replies; 6+ messages in thread
From: Dan Carpenter @ 2010-04-01 15:54 UTC (permalink / raw)
  To: Mike Miller
  Cc: Jens Axboe, Stephen M. Cameron, Andrew Morton, iss_storagedev,
	linux-kernel, kernel-janitors

We take the spin_lock again in fail_all_cmds() so we need to unlock
here.

Signed-off-by: Dan Carpenter <error27@gmail.com>
---
This was found by a static checker and I don't have the hardware myself.
Please review carefully.

diff --git a/drivers/block/cciss.c b/drivers/block/cciss.c
index 9e3af30..eb5ff05 100644
--- a/drivers/block/cciss.c
+++ b/drivers/block/cciss.c
@@ -3341,6 +3341,7 @@ static irqreturn_t do_cciss_intr(int irq, void *dev_id)
 					printk(KERN_WARNING
 					       "cciss: controller cciss%d failed, stopping.\n",
 					       h->ctlr);
+					spin_unlock_irqrestore(CCISS_LOCK(h->ctlr), flags);
 					fail_all_cmds(h->ctlr);
 					return IRQ_HANDLED;
 				}

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-04-02  6:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-01 15:54 [patch] cciss: unlock on error path Dan Carpenter
2010-04-01 15:54 ` Dan Carpenter
2010-04-01 16:33 ` scameron
2010-04-01 16:33   ` scameron
2010-04-02  6:39 ` Jens Axboe
2010-04-02  6:39   ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.