]> 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)
commite84955803c6e02c39aef25dd663aeb8b4bda52ff
tree26b4cf0350f63e454385da87bfad78ab60445e24
parent62c61ea13db4379610637d05d872d11f600758dd
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