From 83ff74e33849cd5592efa1ea583175600b6a485e Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Sat, 27 Aug 2011 12:59:30 +0300 Subject: [PATCH] [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 Acked-by: "Nandigama, Nagalakshmi" Signed-off-by: James Bottomley --- drivers/message/fusion/mptbase.c | 1 + 1 file changed, 1 insertion(+) 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) printk(MYIOC_s_INFO_FMT "%s: host reset in" " progress mpt_config timed out.!!\n", __func__, ioc->name); + mutex_unlock(&ioc->mptbase_cmds.mutex); return -EFAULT; } spin_unlock_irqrestore(&ioc->taskmgmt_lock, flags); -- 2.30.2