]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit83acb86aa37d5171b51b82f354910cce0773ed43
tree3d37de3520d38a2278e7d54ad7a30b5a966c4901
parent2eb3cafecadd787be5721f45f73f632f18340210
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