* [PATCH] Fix incorrect pointer in megaraid.c MODE_SENSE emulation
@ 2005-12-07 22:46 Mark Lord
0 siblings, 0 replies; only message in thread
From: Mark Lord @ 2005-12-07 22:46 UTC (permalink / raw)
To: Linux Kernel, linux-scsi
[-- Attachment #1: Type: text/plain, Size: 190 bytes --]
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>
[-- Attachment #2: megaraid.patch --]
[-- Type: text/x-patch, Size: 375 bytes --]
--- linux-2.6.15-rc5/drivers/scsi/megaraid.c.orig 2005-12-04 00:10:42.000000000 -0500
+++ linux/drivers/scsi/megaraid.c 2005-12-07 17:41:30.000000000 -0500
@@ -664,7 +664,7 @@
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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2005-12-07 22:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-07 22:46 [PATCH] Fix incorrect pointer in megaraid.c MODE_SENSE emulation Mark Lord
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.