Add error message to resume error path and make sure to also return an error when failing to submit a cached write. Signed-off-by: Johan Hovold <jhovold@xxxxxxxxx> --- drivers/usb/serial/sierra.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/usb/serial/sierra.c b/drivers/usb/serial/sierra.c index 96ad379a0681..0254f6d6bc5d 100644 --- a/drivers/usb/serial/sierra.c +++ b/drivers/usb/serial/sierra.c @@ -1037,6 +1037,10 @@ static int sierra_resume(struct usb_serial *serial) intfdata->in_flight++; err = usb_submit_urb(urb, GFP_ATOMIC); if (err < 0) { + dev_err(&port->dev, + "%s - submit urb failed: %d", + __func__, err); + ec++; intfdata->in_flight--; usb_unanchor_urb(urb); kfree(urb->transfer_buffer); -- 1.8.5.5 -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html