serial: bfin-uart: Don't access tty circular buffer in TX DMA interrupt after it...
authorSonic Zhang <sonic.zhang@analog.com>
Tue, 13 Mar 2012 07:51:55 +0000 (15:51 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 13 Mar 2012 21:33:39 +0000 (14:33 -0700)
commit60f4b002ab209525c2b818703291ac9a14890e17
tree60c771ae0b9cc03e7687f3486f38c3d5d0a6027a
parent82896210aa3c59eaa4f78f7ba2f5f947601dd8f8
serial: bfin-uart: Don't access tty circular buffer in TX DMA interrupt after it is reset.

When kernel reboot, tty circular buffer is reset before last TX DMA interrupt is called,
while the buffer tail is updated in TX DMA interrupt handler. So, don't update the buffer
tail if it is reset.

Signed-off-by: Sonic Zhang <sonic.zhang@analog.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/bfin_uart.c