summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorMark Lord <lkml@rtr.ca>2005-12-07 23:46:57 +0100
committerJames Bottomley <jejb@mulgrave.(none)>2005-12-08 15:08:54 +0100
commitf0353301e6752399ceb874ede7f44e3571c5e4f3 (patch)
tree8a815fd42e5df4b3c5177d7e0cb9b2211459d59d /drivers
parent[SCSI] qla2xxx: Correct short-WRITE status handling. (diff)
downloadlinux-f0353301e6752399ceb874ede7f44e3571c5e4f3.tar.xz
linux-f0353301e6752399ceb874ede7f44e3571c5e4f3.zip
[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>
Diffstat (limited to 'drivers')
-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 f9792528e33f..578143e93a6f 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;