Revision 0db99e3359234be181590463184b9959059a9ea9 authored by Mike Christie on 26 August 2006, 07:00:22 UTC, committed by James Bottomley on 26 August 2006, 15:03:14 UTC
The callers of scsi_send_eh_cmnd are setting the cmnd buffer,
and then scsi_send_eh_cmnd is copying that updated buffer to
the old_cmnd variable. Then after the command runs, we end up
copying that old_cmnd var which has the new cmnd to the scsi
command buffer. When this command gets recent, all types of fun
things happen like getting TUR or START_STOP commands with
data and scatterlists.

This patch made against scsi-rc-fixes, has the callers of
scsi_send_eh_cmnd pass in the command so scsi_send_eh_cmnd
can do the right thing. This should go into 2.6.18 since this
fixes a regression added when we removed some of the scsi_cmnd
fields and replaced them with local variables.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
1 parent 15a3758
History
File Mode Size
basic
genksyms
kconfig
ksymoops
mod
package
rt-tester
.gitignore -rw-r--r-- 59 bytes
Kbuild.include -rw-r--r-- 5.4 KB
Lindent -rwxr-xr-x 60 bytes
Makefile -rw-r--r-- 792 bytes
Makefile.build -rw-r--r-- 10.4 KB
Makefile.clean -rw-r--r-- 3.2 KB
Makefile.headersinst -rw-r--r-- 4.7 KB
Makefile.host -rw-r--r-- 5.9 KB
Makefile.lib -rw-r--r-- 6.4 KB
Makefile.modinst -rw-r--r-- 1.0 KB
Makefile.modpost -rw-r--r-- 3.8 KB
bin2c.c -rw-r--r-- 702 bytes
binoffset.c -rw-r--r-- 3.9 KB
bloat-o-meter -rwxr-xr-x 1.6 KB
checkincludes.pl -rwxr-xr-x 529 bytes
checkstack.pl -rwxr-xr-x 3.7 KB
checkversion.pl -rwxr-xr-x 1.8 KB
conmakehash.c -rw-r--r-- 6.0 KB
export_report.pl -rw-r--r-- 4.2 KB
extract-ikconfig -rwxr-xr-x 1.7 KB
gcc-version.sh -rw-r--r-- 338 bytes
gen_initramfs_list.sh -rw-r--r-- 6.4 KB
hdrcheck.sh -rwxr-xr-x 200 bytes
kallsyms.c -rw-r--r-- 12.0 KB
kernel-doc -rwxr-xr-x 51.0 KB
makelst -rwxr-xr-x 941 bytes
mkcompile_h -rwxr-xr-x 2.3 KB
mkmakefile -rw-r--r-- 742 bytes
mksysmap -rw-r--r-- 1.3 KB
mkuboot.sh -rwxr-xr-x 293 bytes
mkversion -rw-r--r-- 74 bytes
namespace.pl -rwxr-xr-x 13.1 KB
patch-kernel -rwxr-xr-x 9.7 KB
pnmtologo.c -rw-r--r-- 11.7 KB
profile2linkerlist.pl -rw-r--r-- 378 bytes
setlocalversion -rw-r--r-- 527 bytes
show_delta -rwxr-xr-x 3.0 KB
ver_linux -rwxr-xr-x 3.1 KB

back to top