]> asedeno.scripts.mit.edu Git - linux.git/commit
tty/serial: at91: handle IRQ status more safely
authorLeilei Zhao <leilei.zhao@atmel.com>
Thu, 9 Apr 2015 02:48:15 +0000 (10:48 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 6 May 2015 20:26:58 +0000 (22:26 +0200)
commitd033e82db9a5e9bc93224c8a058b9c03e4e3f8ad
tree29685cab9edd64334867e221a943cb5c1be791b2
parent74a76089d2916ff7f87c37a482da6497b17cdb90
tty/serial: at91: handle IRQ status more safely

Handle the changed flag of IRQ status in interruption
instead of handling it in tasklet due to the tasklet
may be scheduled more than once in one interruption.
Otherwise, the changed status may be processed more
than once which will lead to unexpected result. And
seriously, kernel will 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>
drivers/tty/serial/atmel_serial.c