serial: sh-sci: Fix up break timer scheduling race.
authorPaul Mundt <lethal@linux-sh.org>
Thu, 20 Jan 2011 14:30:19 +0000 (23:30 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Thu, 20 Jan 2011 14:30:19 +0000 (23:30 +0900)
commitbc9b3f5c9f3702e71066a4de0afe509a201d98b4
tree5e3f500793d6f73924e9b178e84f5a27e63a0476
parent94c8b6dbd64c51aa7ce7fcc466beccf942271b0e
serial: sh-sci: Fix up break timer scheduling race.

The break flag timer is presently added through add_timer() via the
interrupt and error paths, where it is possible to send multiple breaks
in rapid succession and trigger the timer pending BUG_ON(). This moves
over to a mod_timer() instead.

Signed-off-by: Paul Mundt <lethal@linux-sh.org>
drivers/serial/sh-sci.c