[SCSI] mpt2sas: add missing initialization of scsih_cmds
authorKashyap, Desai <kashyap.desai@lsi.com>
Tue, 17 Nov 2009 07:46:37 +0000 (13:16 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 10 Dec 2009 14:54:10 +0000 (08:54 -0600)
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>
drivers/scsi/mpt2sas/mpt2sas_base.c

index 6422e258fd52717b944ffa820bdecf504edcee92..89d02401b9eca54aa5c1de99eebdf73558e05bdc 100644 (file)
@@ -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;