diff options
author | Dan Carpenter <error27@gmail.com> | 2011-08-27 05:59:30 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-05-22 06:50:54 -0400 |
commit | 83ff74e33849cd5592efa1ea583175600b6a485e (patch) | |
tree | 35e533bdbc7ba955ec8ce7db3048dcfc29ef2e52 /drivers/message/fusion/mptbase.c | |
parent | 75f8c1f693eefacc17a65614eb4ed1ee0f84fda6 (diff) |
[SCSI] mptfusion: unlock on error in mpt_config()
We introduced a new return here and forgot to unlock the mutex.
Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: "Nandigama, Nagalakshmi" <Nagalakshmi.Nandigama@lsi.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/message/fusion/mptbase.c')
-rw-r--r-- | drivers/message/fusion/mptbase.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/message/fusion/mptbase.c b/drivers/message/fusion/mptbase.c index a5c591ffe395..444143e5f28c 100644 --- a/drivers/message/fusion/mptbase.c +++ b/drivers/message/fusion/mptbase.c | |||
@@ -6483,6 +6483,7 @@ mpt_config(MPT_ADAPTER *ioc, CONFIGPARMS *pCfg) | |||
6483 | printk(MYIOC_s_INFO_FMT "%s: host reset in" | 6483 | printk(MYIOC_s_INFO_FMT "%s: host reset in" |
6484 | " progress mpt_config timed out.!!\n", | 6484 | " progress mpt_config timed out.!!\n", |
6485 | __func__, ioc->name); | 6485 | __func__, ioc->name); |
6486 | mutex_unlock(&ioc->mptbase_cmds.mutex); | ||
6486 | return -EFAULT; | 6487 | return -EFAULT; |
6487 | } | 6488 | } |
6488 | spin_unlock_irqrestore(&ioc->taskmgmt_lock, flags); | 6489 | spin_unlock_irqrestore(&ioc->taskmgmt_lock, flags); |