]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
USB: sierra: fix resume error reporting
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:22:57 +0000 (19:22 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:03 +0000 (15:04 -0700)
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@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/sierra.c

index 96ad379a0681fc4b6cbb3dc447a239cf63fcf06f..0254f6d6bc5d3dbe3673a208ce2844662e8b9a85 100644 (file)
@@ -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);