https://github.com/torvalds/linux
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
Tip revision: 0db99e3359234be181590463184b9959059a9ea9 authored by Mike Christie on 26 August 2006, 07:00:22 UTC
[SCSI] fix scsi_send_eh_cmnd regression
[SCSI] fix scsi_send_eh_cmnd regression
Tip revision: 0db99e3
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 262 bytes |
balloc.c | -rw-r--r-- | 24.2 KB |
crc.c | -rw-r--r-- | 5.2 KB |
dir.c | -rw-r--r-- | 6.2 KB |
directory.c | -rw-r--r-- | 7.4 KB |
ecma_167.h | -rw-r--r-- | 21.8 KB |
file.c | -rw-r--r-- | 6.3 KB |
fsync.c | -rw-r--r-- | 1.1 KB |
ialloc.c | -rw-r--r-- | 4.3 KB |
inode.c | -rw-r--r-- | 53.9 KB |
lowlevel.c | -rw-r--r-- | 1.5 KB |
misc.c | -rw-r--r-- | 7.7 KB |
namei.c | -rw-r--r-- | 32.8 KB |
osta_udf.h | -rw-r--r-- | 8.1 KB |
partition.c | -rw-r--r-- | 6.0 KB |
super.c | -rw-r--r-- | 50.7 KB |
symlink.c | -rw-r--r-- | 2.3 KB |
truncate.c | -rw-r--r-- | 7.5 KB |
udf_i.h | -rw-r--r-- | 1019 bytes |
udf_sb.h | -rw-r--r-- | 5.3 KB |
udfdecl.h | -rw-r--r-- | 6.5 KB |
udfend.h | -rw-r--r-- | 1.9 KB |
udftime.c | -rw-r--r-- | 5.6 KB |
unicode.c | -rw-r--r-- | 10.6 KB |
Computing file changes ...