From: Oliver Neukum Date: Thu, 10 Feb 2011 14:33:23 +0000 (+0100) Subject: usb_wwan: data consistency in error case X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=433508ae30f13c0bf6905e576c42899a8535f0bb;p=linux-beck.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/usb_wwan.c b/drivers/usb/serial/usb_wwan.c index 07cdc6cd1064..84fe1b6ba11b 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; } }