summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Lord <lkml@rtr.ca>2005-12-07 17:46:57 -0500
committerJames Bottomley <jejb@mulgrave.(none)>2005-12-08 09:08:54 -0500
commitf0353301e6752399ceb874ede7f44e3571c5e4f3 (patch)
tree8a815fd42e5df4b3c5177d7e0cb9b2211459d59d
parent0da69df1e54146eece38e0a144051f6dd3526821 (diff)
downloadop-kernel-dev-f0353301e6752399ceb874ede7f44e3571c5e4f3.zip
op-kernel-dev-f0353301e6752399ceb874ede7f44e3571c5e4f3.tar.gz
[SCSI] Fix incorrect pointer in megaraid.c MODE_SENSE emulation
The SCSI megaraid drive goes to great effort to kmap the scatterlist buffer (if used), but then uses the wrong pointer when copying to it afterward. Signed-off-by: Mark Lord <lkml@rtr.ca> Acked by: Ju, Seokmann <Seokmann.Ju@engenio.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
-rw-r--r--drivers/scsi/megaraid.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c
index f979252..578143e 100644
--- a/drivers/scsi/megaraid.c
+++ b/drivers/scsi/megaraid.c
@@ -664,7 +664,7 @@ mega_build_cmd(adapter_t *adapter, Scsi_Cmnd *cmd, int *busy)
sg->offset;
} else
buf = cmd->request_buffer;
- memset(cmd->request_buffer, 0, cmd->cmnd[4]);
+ memset(buf, 0, cmd->cmnd[4]);
if (cmd->use_sg) {
struct scatterlist *sg;
OpenPOWER on IntegriCloud