aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/serial/usb_wwan.c
diff options
context:
space:
mode:
authorOliver Neukum <oliver@neukum.org>2011-02-10 15:33:23 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-17 10:51:12 -0800
commit433508ae30f13c0bf6905e576c42899a8535f0bb (patch)
tree9a660bc03d3686924dd734322206164ca8fe440a /drivers/usb/serial/usb_wwan.c
parent3d06bf152abcc3895a0f3afa21d762d84c9aecbc (diff)
usb_wwan: data consistency in error case
As soon as the first error happens, the write must be stopped, lest we send mutilated messages. Signed-off-by: Oliver Neukum <oneukum@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/usb_wwan.c')
-rw-r--r--drivers/usb/serial/usb_wwan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c
index 07cdc6cd106..84fe1b6ba11 100644
--- a/drivers/usb/serial/usb_wwan.c
+++ b/drivers/usb/serial/usb_wwan.c
@@ -262,7 +262,7 @@ int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port,
spin_unlock_irqrestore(&intfdata->susp_lock,
flags);
usb_autopm_put_interface_async(port->serial->interface);
- continue;
+ break;
}
}