uart_get_baud_rate: stop mangling termios
authorAlan Cox <alan@lxorguk.ukuu.org.uk>
Mon, 28 Apr 2008 09:14:07 +0000 (02:14 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 28 Apr 2008 15:58:30 +0000 (08:58 -0700)
commiteb424fd21c0931e998156225f2a0910167c3e16c
tree39a49e87d0dfaa75b0f02b6f64c49beba9f079b6
parente991a2bd4fa0b2f475b67dfe8f33e8ecbdcbb40b
uart_get_baud_rate: stop mangling termios

Russell King noticed this one: We have to avoid replacing B0 when we pick a
baud rate for a "hung up" port.  Ugly but the proper fix is in the tty layer
and means changing the tty<->serial interfaces so we will defer that for now.

[akpm@linux-foundation.org: fix uninitialised var]
Signed-off-by: Alan Cox <alan@redhat.com>
Cc: Russell King <rmk@arm.linux.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/serial/serial_core.c