Commit 433508ae authored by Oliver Neukum's avatar Oliver Neukum Committed by Greg Kroah-Hartman

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: default avatarOliver Neukum <oneukum@suse.de>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 3d06bf15
...@@ -262,7 +262,7 @@ int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port, ...@@ -262,7 +262,7 @@ int usb_wwan_write(struct tty_struct *tty, struct usb_serial_port *port,
spin_unlock_irqrestore(&intfdata->susp_lock, spin_unlock_irqrestore(&intfdata->susp_lock,
flags); flags);
usb_autopm_put_interface_async(port->serial->interface); usb_autopm_put_interface_async(port->serial->interface);
continue; break;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment