summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/sierra.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2014-05-26 19:22:57 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-05-27 15:04:03 -0700
commitf4a2d499e7f0ea9089c8e537ddad12260f7aab69 (patch)
tree5d29b553fe8285bade97f8a38dc91c4b0d0fd8a7 /drivers/usb/serial/sierra.c
parentc9d838a898fe232dd51eb924a17cee346bcb697c (diff)
downloadlwn-f4a2d499e7f0ea9089c8e537ddad12260f7aab69.tar.gz
lwn-f4a2d499e7f0ea9089c8e537ddad12260f7aab69.zip
USB: sierra: fix resume error reporting
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>
Diffstat (limited to 'drivers/usb/serial/sierra.c')
-rw-r--r--drivers/usb/serial/sierra.c4
1 files changed, 4 insertions, 0 deletions
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);