aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/mpt2sas/mpt2sas_base.h
diff options
context:
space:
mode:
authorKashyap, Desai <kashyap.desai@lsi.com>2010-06-17 04:19:28 -0400
committerJames Bottomley <James.Bottomley@suse.de>2010-07-27 13:02:24 -0400
commit769578ff811e43ccddd96b15640fa7c9df65c374 (patch)
tree8e997f722f0c069764fdac571d63510a404a4ec6 /drivers/scsi/mpt2sas/mpt2sas_base.h
parent8e864a81e30ab996d3245ebd16a741b3614e6581 (diff)
[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>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpt2sas_base.h')
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_base.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.h b/drivers/scsi/mpt2sas/mpt2sas_base.h
index 6fdee1680a6b..2bbb870a199a 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_base.h
+++ b/drivers/scsi/mpt2sas/mpt2sas_base.h
@@ -247,6 +247,7 @@ struct MPT2SAS_DEVICE {
247 * @mutex: mutex 247 * @mutex: mutex
248 * @done: completion 248 * @done: completion
249 * @reply: reply message pointer 249 * @reply: reply message pointer
250 * @sense: sense data
250 * @status: MPT2_CMD_XXX status 251 * @status: MPT2_CMD_XXX status
251 * @smid: system message id 252 * @smid: system message id
252 */ 253 */
@@ -254,6 +255,7 @@ struct _internal_cmd {
254 struct mutex mutex; 255 struct mutex mutex;
255 struct completion done; 256 struct completion done;
256 void *reply; 257 void *reply;
258 void *sense;
257 u16 status; 259 u16 status;
258 u16 smid; 260 u16 smid;
259}; 261};