uas: zap_pending: data urbs should have completed at this time
authorHans de Goede <hdegoede@redhat.com>
Sat, 13 Sep 2014 10:26:37 +0000 (12:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 04:42:11 +0000 (21:42 -0700)
commit9c15c5738b5219fdc273e8923b2c1a9d5e8ce3b3
treea1a6241d97026279dac1b2fe664210a08ed369f1
parent1589349f74d669b767bc0971fb21372ad300452e
uas: zap_pending: data urbs should have completed at this time

The data urbs are all killed before calling zap_pending, and their completion
handler should have cleared their inflight flag.

Do not 0 the data inflight flags, and add a check for try_complete succeeding,
as it should always succeed when called from zap_pending.

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