[SCSI] mpt2sas: Copy sense buffer instead of working on direct memory location
authorKashyap, Desai <kashyap.desai@lsi.com>
Thu, 17 Jun 2010 08:19:28 +0000 (13:49 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 27 Jul 2010 17:02:24 +0000 (12:02 -0500)
commit769578ff811e43ccddd96b15640fa7c9df65c374
tree8e997f722f0c069764fdac571d63510a404a4ec6
parent8e864a81e30ab996d3245ebd16a741b3614e6581
[SCSI] mpt2sas: Copy sense buffer instead of working on direct memory location

(1) driver was not setting the sense data size prior to sending SCSI_IO,
resulting in the 0x31190000 loginfo
(2) The driver needs to copy the sense data to local buffer prior
to releasing the request message frame.  If not, the sense buffer gets
overwritten by the next SCSI_IO request.

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