https://github.com/torvalds/linux
Revision 6e3b2bbb197eb12b2bef35bcf2ac3bd6a5facab2 authored by James Bottomley on 06 April 2007, 16:14:56 UTC, committed by James Bottomley on 14 April 2007, 13:49:03 UTC
3w-xxxx emulates a REQUEST_SENSE response by simply returning nothing.
Unfortunately, it's assuming that the REQUEST_SENSE command is
implemented with use_sg == 0, which is no longer the case.  The oops
occurs because it's clearing the scatterlist in request_buffer instead
of the memory region.

This is fixed by using tw_transfer_internal() to transfer correctly to
the scatterlist.

Acked-by: adam radford <aradford@gmail.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
1 parent 8a06597
History
Tip revision: 6e3b2bbb197eb12b2bef35bcf2ac3bd6a5facab2 authored by James Bottomley on 06 April 2007, 16:14:56 UTC
[SCSI] 3w-xxxx: fix oops caused by incorrect REQUEST_SENSE handling
Tip revision: 6e3b2bb
File Mode Size
Documentation
arch
block
crypto
drivers
fs
include
init
ipc
kernel
lib
mm
net
scripts
security
sound
usr
.gitignore -rw-r--r-- 572 bytes
.mailmap -rw-r--r-- 3.5 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 88.9 KB
Kbuild -rw-r--r-- 1.2 KB
MAINTAINERS -rw-r--r-- 82.3 KB
Makefile -rw-r--r-- 49.1 KB
README -rw-r--r-- 16.5 KB
REPORTING-BUGS -rw-r--r-- 3.0 KB

README

back to top