summaryrefslogtreecommitdiff
path: root/drivers/pnp/system.c
diff options
context:
space:
mode:
authorJames Bottomley <James.Bottomley@steeleye.com>2007-04-06 20:14:56 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2007-05-02 04:06:00 +0400
commit86f757f0125d688bdd3d211df3859e013d8544b2 (patch)
tree97984856f62dcd97f76502f2b13bdc5d1ca8798c /drivers/pnp/system.c
parent93c27c733bcab7cc19cc77dc5fb8b605921adf59 (diff)
downloadlinux-86f757f0125d688bdd3d211df3859e013d8544b2.tar.xz
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 <aradford@gmail.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pnp/system.c')
0 files changed, 0 insertions, 0 deletions