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)
commitd5f808d3f88e90b13a4839e07b3dc6e715e2ba88
tree26b4cf0350f63e454385da87bfad78ab60445e24
parentf491ecbb47d5a709d46401da3cd54ff8ee666ca0
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