Commit 496969c6 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman

USB: option: add missing usb_mark_last_busy

We should call usb_mark_last_busy in all input paths, including the
interrupt completion handler.
Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dd246f2c
...@@ -1904,6 +1904,7 @@ static void option_instat_callback(struct urb *urb) ...@@ -1904,6 +1904,7 @@ static void option_instat_callback(struct urb *urb)
/* Resubmit urb so we continue receiving IRQ data */ /* Resubmit urb so we continue receiving IRQ data */
if (status != -ESHUTDOWN && status != -ENOENT) { if (status != -ESHUTDOWN && status != -ENOENT) {
usb_mark_last_busy(port->serial->dev);
err = usb_submit_urb(urb, GFP_ATOMIC); err = usb_submit_urb(urb, GFP_ATOMIC);
if (err) if (err)
dev_dbg(dev, "%s: resubmit intr urb failed. (%d)\n", dev_dbg(dev, "%s: resubmit intr urb failed. (%d)\n",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment