uas: improve abort handler
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 30 Nov 2012 10:54:43 +0000 (11:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 20:14:18 +0000 (12:14 -0800)
commit5d390403fee54a64c660b7d42f7b38d99a486b88
tree7996e8239e7ae1a6188dd24a5e0a0c5a1f7469b1
parentefefecf33adefcd28edfd3cee282aa9cbc3374ca
uas: improve abort handler

Two changes.  First we check whenever the request is linked in the work
list and if so take it out.  Second check whenever the command is
actually in flight before asking the device to cancel it via task
management, and in case it isn't just zap the data urbs and finish it.

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