Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: cdc-acm: do not update PM busy on read errors

There's no need to update the runtime PM last_busy field on read urb
errors (e.g. when the urb is being killed on shutdown).

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Johan Hovold and committed by
Greg Kroah-Hartman
4a8ee505 b1d42efc

+3 -1
+3 -1
drivers/usb/class/cdc-acm.c
··· 416 416 dev_dbg(&acm->data->dev, "%s - disconnected\n", __func__); 417 417 return; 418 418 } 419 - usb_mark_last_busy(acm->dev); 420 419 421 420 if (urb->status) { 422 421 dev_dbg(&acm->data->dev, "%s - non-zero urb status: %d\n", 423 422 __func__, urb->status); 424 423 return; 425 424 } 425 + 426 + usb_mark_last_busy(acm->dev); 427 + 426 428 acm_process_read_urb(acm, urb); 427 429 428 430 /* throttle device if requested by tty */