]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
mpt2sas: add missing initialization of scsih_cmds
authorKashyap, Desai <kashyap.desai@lsi.com>
Tue, 17 Nov 2009 07:46:37 +0000 (13:16 +0530)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 23:14:00 +0000 (15:14 -0800)
commit d685c262083dcd5fd98b7499b22a377a3225229c upstream.

Internal command scsih_cmds init is included in mpt2sas_base_attach.

Signed-off-by: Kashyap Desai <kashyap.desai@lsi.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/mpt2sas/mpt2sas_base.c

index 81a2124684eaf9b9c78825fcd0db275873158af6..f0ab5fbf2727c3041204a1872f88a13269ab9365 100644 (file)
@@ -3662,6 +3662,11 @@ mpt2sas_base_attach(struct MPT2SAS_ADAPTER *ioc)
        ioc->scsih_cmds.status = MPT2_CMD_NOT_USED;
        mutex_init(&ioc->scsih_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;