Home
last modified time | relevance | path

Searched hist:"1 e1257860fd10487795b782f1dbb5b5f2c203474" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/tty/serial/
H A Datmel_serial.cdiff 1e1257860fd10487795b782f1dbb5b5f2c203474 Fri Feb 27 02:07:18 CST 2015 Leilei Zhao <leilei.zhao@atmel.com> tty/serial: at91: correct the usage of tasklet

The tasklet may be scheduled and executed after serial port
was shutdown, for example, DMA rx callback will schedule the
tasklet while serial port is shutting down, especially serial
port is sending and receiving data in a higher baud rate and
it's killed by external program. In this case, tasklet_kill
can only clear the current scheduling out, so tasklet should
be disabled to prevent being executed in later scheduling.
Otherwise, the tasklet executed after serial port was shutdown
can lead to kernel crash.

Signed-off-by: Leilei Zhao <leilei.zhao@atmel.com>
Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>