uas: Fix resetting flag handling
authorHans de Goede <hdegoede@redhat.com>
Sat, 13 Sep 2014 10:26:30 +0000 (12:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 24 Sep 2014 04:42:10 +0000 (21:42 -0700)
commitb7b5d11fae766ee0e92821df2694c41f15f98954
tree3d37de3520d38a2278e7d54ad7a30b5a966c4901
parent5df2be63332a661a8d7234ca15c23bc48ed8e2a2
uas: Fix resetting flag handling

- Make sure we always hold the lock when setting / checking resetting
- Check resetting before checking urb->status
- Add missing check for resetting to uas_data_cmplt
- Add missing check for resetting to uas_do_work

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