usb-serial: fix termios initialization logic
commitb8580fde3ba44a0f00bf186dc5e4935bbd51be29
authorAlan Stern <stern@rowland.harvard.edu>
Tue, 1 Sep 2009 15:39:22 +0000 (1 11:39 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 5 Oct 2009 16:32:40 +0000 (5 09:32 -0700)
treef2a169c7114466933eac65fdaa4871add1ee6c92
parent11f4140f0e28e7ee9d1c3d824f8210759d2e8514
usb-serial: fix termios initialization logic

commit 7e29bb4b779f4f35385e6f21994758845bf14d23 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/usb-serial.c