usb_wwan: data consistency in error case
authorOliver Neukum <oliver@neukum.org>
Thu, 10 Feb 2011 14:33:23 +0000 (15:33 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Feb 2011 18:51:12 +0000 (10:51 -0800)
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>
drivers/usb/serial/usb_wwan.c

index 07cdc6cd1064f8eba6b1f46a4313e90e002eb8f7..84fe1b6ba11b6968df819e5515f28cb31cc7ef10 100644 (file)
@@ -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;
                        }
                }