usb-serial: fix termios initialization logic
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 1 Sep 2009 15:39:22 +0000 (11:39 -0400)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:40 +0000 (13:13 -0700)
commit7e29bb4b779f4f35385e6f21994758845bf14d23
tree393c102e66ad3bba2b5d27d88770b57ab23a2606
parentcc56cd0157753c04a987888a2f793803df661a40
usb-serial: fix termios initialization logic

This patch (as1288) fixes the initialization logic in
serial_install().  A new tty always needs to have a termios
initialized no matter what, not just in the case where the lower
driver will override the termios settings.

Signed-off-by: Alan Stern <stern@rowland.harvard.edu>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/usb-serial.c