]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
tty_ioctl: fix the baud_table check in encode_baud_rate
authorMaciej W. Rozycki <macro@linux-mips.org>
Thu, 18 Oct 2007 10:04:35 +0000 (03:04 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Thu, 18 Oct 2007 21:37:17 +0000 (14:37 -0700)
commit75e8b71d559632dd70c9799ea8b5c133a2ddcea9
treeb6e278a84e0f221dfcd4d2095e104f3575f6ce7f
parent77bf2bab91e4e7df361963451c7b9a803516438c
tty_ioctl: fix the baud_table check in encode_baud_rate

The tty_termios_encode_baud_rate() function as defined by tty_ioctl.c has a
problem with the baud_table within.  The comparison operators are reversed
and as a result this table's entries never match and BOTHER is always used.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_ioctl.c