mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-24 01:41:39 +00:00
[SCSI] mpt2sas: add missing initialization of scsih_cmds
Internal command scsih_cmds init is included in mpt2sas_base_attach. Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com> Cc: Stable Tree <stable@kernel.org> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
This commit is contained in:
parent
6f4fdda41b
commit
d685c26208
1 changed files with 5 additions and 0 deletions
|
@ -3583,6 +3583,11 @@ mpt2sas_base_attach(struct MPT2SAS_ADAPTER *ioc)
|
|||
ioc->transport_cmds.status = MPT2_CMD_NOT_USED;
|
||||
mutex_init(&ioc->transport_cmds.mutex);
|
||||
|
||||
/* scsih internal command bits */
|
||||
ioc->scsih_cmds.reply = kzalloc(ioc->reply_sz, GFP_KERNEL);
|
||||
ioc->scsih_cmds.status = MPT2_CMD_NOT_USED;
|
||||
mutex_init(&ioc->scsih_cmds.mutex);
|
||||
|
||||
/* task management internal command bits */
|
||||
ioc->tm_cmds.reply = kzalloc(ioc->reply_sz, GFP_KERNEL);
|
||||
ioc->tm_cmds.status = MPT2_CMD_NOT_USED;
|
||||
|
|
Loading…
Reference in a new issue