cciss: unlock on error path

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Friday, April 9, 2010 - 11:59 am

Gitweb:     http://git.kernel.org/linus/61917bdaaf6bea4b885525cf63f65272914f6be2
Commit:     61917bdaaf6bea4b885525cf63f65272914f6be2
Parent:     39c01b219fd30c74869b6fc8749f7900f04e9ef6
Author:     Dan Carpenter <error27@gmail.com>
AuthorDate: Fri Apr 2 08:39:40 2010 +0200
Committer:  Jens Axboe <jens.axboe@oracle.com>
CommitDate: Fri Apr 2 08:39:40 2010 +0200

    cciss: unlock on error path
    
    We take the spin_lock again in fail_all_cmds() so we need to unlock
    here.
    
    Signed-off-by: Dan Carpenter <error27@gmail.com>
    Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
---
 drivers/block/cciss.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

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;
 				}
--
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
cciss: unlock on error path, Linux Kernel Mailing ..., (Fri Apr 9, 11:59 am)