]> git.baikalelectronics.ru Git - kernel.git/commit
uas: Urbs must be anchored before submitting them
authorHans de Goede <hdegoede@redhat.com>
Thu, 17 Oct 2013 17:30:26 +0000 (19:30 +0200)
committerSarah Sharp <sarah.a.sharp@linux.intel.com>
Tue, 4 Mar 2014 23:38:07 +0000 (15:38 -0800)
commitb3233ec4bb356c96ead69954558874e24b276238
tree26b4cf0350f63e454385da87bfad78ab60445e24
parent8d3dbcef10858d950697d5b34ba93b9875abf2b2
uas: Urbs must be anchored before submitting them

Otherwise they may complete before they get anchored and thus never get
unanchored (as the unanchoring is done by the usb core on completion).

This commit also remove the usb_get_urb / usb_put_urb around cmd submission +
anchoring, since if done in the proper order this is not necessary.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sarah Sharp <sarah.a.sharp@linux.intel.com>
drivers/usb/storage/uas.c