uas: new function to cancel data urbs
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 30 Nov 2012 10:54:40 +0000 (11:54 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Jan 2013 20:14:17 +0000 (12:14 -0800)
commitaa8f612370edf2fd29ec137f7070b11d98df539b
treee6aca35aa23745c65936533665b78a380f49fde2
parent6a099c63650e50ebf7d1259b859a3d230aec4207
uas: new function to cancel data urbs

Add uas_unlink_data_urbs function to cancel in-flight data urbs.
Moves existing code into a separate function.

[ v2: also drop the locking, just call usb_unlink_urb no matter what,
      which is safe because the usb core guarantees the completion
      callback is called only once ]

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