diff options
author | Leilei Zhao <leilei.zhao@atmel.com> | 2015-02-27 16:07:18 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-03-07 03:51:47 +0100 |
commit | 1e1257860fd10487795b782f1dbb5b5f2c203474 (patch) | |
tree | 8a3dccb3a8b82de52bb9a6356766d143ab2edd20 /include/linux/lguest.h | |
parent | 4d9628a1486658b83e47ad4c7ff07ff1ff0d3d89 (diff) | |
download | blackbird-obmc-linux-1e1257860fd10487795b782f1dbb5b5f2c203474.tar.gz blackbird-obmc-linux-1e1257860fd10487795b782f1dbb5b5f2c203474.zip |
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>
Diffstat (limited to 'include/linux/lguest.h')
0 files changed, 0 insertions, 0 deletions