From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752378Ab1BPBMA (ORCPT ); Tue, 15 Feb 2011 20:12:00 -0500 Received: from kroah.org ([198.145.64.141]:45625 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933055Ab1BPAtM (ORCPT ); Tue, 15 Feb 2011 19:49:12 -0500 X-Mailbox-Line: From gregkh@clark.kroah.org Tue Feb 15 16:21:06 2011 Message-Id: <20110216002106.349570903@clark.kroah.org> User-Agent: quilt/0.48-11.2 Date: Tue, 15 Feb 2011 16:20:40 -0800 From: Greg KH To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: stable-review@kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Kashyap Desai , James Bottomley Subject: [patch 072/176] [SCSI] mpt2sas: add missing initialization of scsih_cmds In-Reply-To: <20110216002212.GA9246@kroah.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2.6.36-stable review patch. If anyone has any objections, please let us know. ------------------ From: Kashyap, Desai commit d685c262083dcd5fd98b7499b22a377a3225229c upstream. Internal command scsih_cmds init is included in mpt2sas_base_attach. Signed-off-by: Kashyap Desai Signed-off-by: James Bottomley Signed-off-by: Greg Kroah-Hartman --- drivers/scsi/mpt2sas/mpt2sas_base.c | 5 +++++ 1 file changed, 5 insertions(+) --- a/drivers/scsi/mpt2sas/mpt2sas_base.c +++ b/drivers/scsi/mpt2sas/mpt2sas_base.c @@ -3662,6 +3662,11 @@ mpt2sas_base_attach(struct MPT2SAS_ADAPT 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;