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
Kconfig -rw-r--r-- 4.9 KB
Makefile -rw-r--r-- 851 bytes
bootmem.c -rw-r--r-- 11.9 KB
fadvise.c -rw-r--r-- 2.6 KB
filemap.c -rw-r--r-- 63.3 KB
filemap.h -rw-r--r-- 2.8 KB
filemap_xip.c -rw-r--r-- 10.3 KB
fremap.c -rw-r--r-- 6.1 KB
highmem.c -rw-r--r-- 13.7 KB
hugetlb.c -rw-r--r-- 18.3 KB
internal.h -rw-r--r-- 1.0 KB
madvise.c -rw-r--r-- 8.6 KB
memory.c -rw-r--r-- 66.7 KB
memory_hotplug.c -rw-r--r-- 7.3 KB
mempolicy.c -rw-r--r-- 46.6 KB
mempool.c -rw-r--r-- 8.9 KB
migrate.c -rw-r--r-- 21.2 KB
mincore.c -rw-r--r-- 4.4 KB
mlock.c -rw-r--r-- 5.3 KB
mmap.c -rw-r--r-- 53.9 KB
mmzone.c -rw-r--r-- 925 bytes
mprotect.c -rw-r--r-- 7.2 KB
mremap.c -rw-r--r-- 10.7 KB
msync.c -rw-r--r-- 5.6 KB
nommu.c -rw-r--r-- 28.0 KB
oom_kill.c -rw-r--r-- 9.8 KB
page-writeback.c -rw-r--r-- 22.9 KB
page_alloc.c -rw-r--r-- 62.6 KB
page_io.c -rw-r--r-- 3.6 KB
pdflush.c -rw-r--r-- 6.3 KB
prio_tree.c -rw-r--r-- 6.3 KB
readahead.c -rw-r--r-- 16.9 KB
rmap.c -rw-r--r-- 23.2 KB
shmem.c -rw-r--r-- 58.4 KB
slab.c -rw-r--r-- 107.6 KB
slob.c -rw-r--r-- 8.8 KB
sparse.c -rw-r--r-- 7.2 KB
swap.c -rw-r--r-- 11.9 KB
swap_state.c -rw-r--r-- 9.3 KB
swapfile.c -rw-r--r-- 43.0 KB
thrash.c -rw-r--r-- 2.7 KB
tiny-shmem.c -rw-r--r-- 3.2 KB
truncate.c -rw-r--r-- 9.7 KB
util.c -rw-r--r-- 1.4 KB
vmalloc.c -rw-r--r-- 17.0 KB
vmscan.c -rw-r--r-- 43.6 KB
vmstat.c -rw-r--r-- 13.2 KB

back to top