diff options
author | Mark Lord <lkml@rtr.ca> | 2005-12-07 17:46:57 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2005-12-08 09:08:54 -0500 |
commit | f0353301e6752399ceb874ede7f44e3571c5e4f3 (patch) | |
tree | 8a815fd42e5df4b3c5177d7e0cb9b2211459d59d /drivers/scsi/megaraid.c | |
parent | 0da69df1e54146eece38e0a144051f6dd3526821 (diff) | |
download | op-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>
Diffstat (limited to 'drivers/scsi/megaraid.c')
-rw-r--r-- | drivers/scsi/megaraid.c | 2 |
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; |