From: James Bottomley Date: Fri, 6 Apr 2007 16:14:56 +0000 (-0500) Subject: [SCSI] 3w-xxxx: fix oops caused by incorrect REQUEST_SENSE handling X-Git-Tag: v2.6.21-rc7~8^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e3b2bbb197eb12b2bef35bcf2ac3bd6a5facab2;p=pandora-kernel.git [SCSI] 3w-xxxx: fix oops caused by incorrect REQUEST_SENSE handling 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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed