]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5da37e25810d9757d57979a95d932c8112e03178
treee6aca35aa23745c65936533665b78a380f49fde2
parentcbf4987f12e4792cd9d1062f0ec98461373c898b
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