mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
728fcd55e9
commit
bafd1b1c2c
|
@ -448,8 +448,7 @@ static void tower_abort_transfers (struct lego_usb_tower *dev)
|
|||
{
|
||||
/* shutdown transfer */
|
||||
usb_kill_urb(dev->interrupt_in_urb);
|
||||
if (dev->interrupt_out_busy)
|
||||
usb_kill_urb(dev->interrupt_out_urb);
|
||||
usb_kill_urb(dev->interrupt_out_urb);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue