Commit 83ff74e3 authored by Dan Carpenter's avatar Dan Carpenter Committed by James Bottomley

[SCSI] mptfusion: unlock on error in mpt_config()

We introduced a new return here and forgot to unlock the mutex.
Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatar"Nandigama, Nagalakshmi" <Nagalakshmi.Nandigama@lsi.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 75f8c1f6
...@@ -6483,6 +6483,7 @@ mpt_config(MPT_ADAPTER *ioc, CONFIGPARMS *pCfg) ...@@ -6483,6 +6483,7 @@ mpt_config(MPT_ADAPTER *ioc, CONFIGPARMS *pCfg)
printk(MYIOC_s_INFO_FMT "%s: host reset in" printk(MYIOC_s_INFO_FMT "%s: host reset in"
" progress mpt_config timed out.!!\n", " progress mpt_config timed out.!!\n",
__func__, ioc->name); __func__, ioc->name);
mutex_unlock(&ioc->mptbase_cmds.mutex);
return -EFAULT; return -EFAULT;
} }
spin_unlock_irqrestore(&ioc->taskmgmt_lock, flags); spin_unlock_irqrestore(&ioc->taskmgmt_lock, flags);
......
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