uas: Check against unexpected completions
authorHans de Goede <hdegoede@redhat.com>
Sat, 13 Sep 2014 10:26:33 +0000 (12:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 04:42:10 +0000 (21:42 -0700)
commitd89da03acec19b39506f3ef32e09134b50b4adb9
tree795eaebec8d0337094eab2de71defee0dd83c0ab
parent5e61aede477ee108de3f9e57f19cacd8ce3ffe52
uas: Check against unexpected completions

The status urb should not complete before the command has been submitted, nor
should we get a second status urb for the same tag after a IU_ID_STATUS.

Data urbs should not complete before the command has been submitted, but may
complete after the IU_ID_STATUS.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/storage/uas.c