[PATCH] generic_serial: fix decoding of baud rate
commitd340d89087534e8b12e1b6ed1c1569dd892b5465
authorDaniel Drake <dsd@gentoo.org>
Tue, 27 Mar 2007 05:32:15 +0000 (26 21:32 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Tue, 27 Mar 2007 16:05:15 +0000 (27 09:05 -0700)
treedc55e94ca94ac82f799a15e8590fcff4061d3742
parent5e55e2f5fc95b355d8aa649f346cff69904c8ade
[PATCH] generic_serial: fix decoding of baud rate

Commit d720bc4b8fc5d6d179ef094908d4fbb5e436ffad partially removed a
private implementation of baud speed decoding.  However it doesn't seem
to be complete: after the speed is decoded, it is still being used as an
index to a local speed table (array overrun, no doubt).

This was found by Graham Murray who noticed it caused a 2.6.19 regression
with the SX driver: https://bugs.gentoo.org/170554

Signed-off-by: Daniel Drake <dsd@gentoo.org>
Acked-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/generic_serial.c