USB: legousbtower: stop interrupt-out URB unconditionally
authorJohan Hovold <johan@kernel.org>
Tue, 5 Nov 2019 08:41:45 +0000 (09:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 7 Nov 2019 10:17:51 +0000 (11:17 +0100)
commitbafd1b1c2cee5513a400efffa58e9d02d8577423
tree1f484f860926bddde34d515895ed0ecf96c66ad4
parent728fcd55e9ac3c7058949d78a443bedc7251b320
USB: legousbtower: stop interrupt-out URB unconditionally

Stop also the interrupt-out URB unconditionally in
tower_abort_transfers() which is called from release() (for connected
devices). Calling usb_kill_urb() for an idle URB is perfectly fine.

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191105084152.16322-8-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/legousbtower.c