]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[ARM] i.MX serial: fix tx buffer overflows
authorSascha Hauer <s.hauer@pengutronix.de>
Tue, 6 Feb 2007 00:10:16 +0000 (16:10 -0800)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 11 Feb 2007 16:46:19 +0000 (16:46 +0000)
commit8c0b254b7efaa7941b3acfe790dd16597b0964b3
tree8e207bb396d9a1b04bda617139bf030c6da45edf
parentae0a846e411dc0b568e8ccda584896310ee5f369
[ARM] i.MX serial: fix tx buffer overflows

Fix occasional tx buffer overflows in the i.MX serial driver which came
from the fact that space in the buffer was checked after sending the first
byte.  Also, fifosize is 32 bytes, not 8.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de
Acked-by: Pavel Pisa <pisa@cmp.felk.cvut.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/serial/imx.c