]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
uas: fix sense urb handling
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 19 Jun 2012 07:54:50 +0000 (09:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 25 Jun 2012 18:50:59 +0000 (11:50 -0700)
commite9bd7e1a2d34de3b0991c81080d56dc408110833
tree9839c93d3d84ef4419a8c1585a55e7bab49736ee
parentdb32de11f75673c2a0f2651ae58b0f25b8c5b0eb
uas: fix sense urb handling

Stop reusing sense urbs, just allocate a fresh one each time and free it
when done.

Stop storing a sense urb pointer in the scsi request, all you can do
with it is misusing.  For example requeuing the sense urb, then f*ck it
up by picking the wrong one in case tagged requests don't finish in the
same order you've submitted them.  Also note that (not-yet supported)
task management ops don't have a scsi request in the first place.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/uas.c