[SCSI] fix up request buffer reference in various scsi drivers
authorChristoph Hellwig <hch@lst.de>
Sat, 3 Jun 2006 11:21:13 +0000 (13:21 +0200)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Tue, 6 Jun 2006 15:07:25 +0000 (11:07 -0400)
commit5d5ff44fe6775ccb922fd1f7d478b2ba9ca95068
treed8569caefe1cb5ecced30929ef98d3e1fe642425
parente4a082c7c1f9a7b11fece6918e7ee5519b39ac46
[SCSI] fix up request buffer reference in various scsi drivers

Various scsi drivers use scsi_cmnd.buffer and scsi_cmnd.bufflen in their
queuecommand functions.  Those fields are internal storage for the
midlayer only and are used to restore the original payload after
request_buffer and request_bufflen have been overwritten for EH.  Using
the buffer and bufflen fields means they do very broken things in error
handling.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
17 files changed:
drivers/block/cciss_scsi.c
drivers/scsi/3w-9xxx.c
drivers/scsi/3w-xxxx.c
drivers/scsi/NCR5380.c
drivers/scsi/aacraid/aachba.c
drivers/scsi/atp870u.c
drivers/scsi/gdth.c
drivers/scsi/in2000.c
drivers/scsi/ips.c
drivers/scsi/libata-scsi.c
drivers/scsi/megaraid.c
drivers/scsi/ncr53c8xx.c
drivers/scsi/nsp32.c
drivers/scsi/sd.c
drivers/scsi/sr.c
drivers/scsi/sym53c8xx_2/sym_glue.c
drivers/usb/image/microtek.c