[PATCH 2/4] tty/serial: at91: fix race condition in atmel_serial_remove

2014-01-07 Thread Nicolas Ferre
From: Marek Roszko The _remove callback could be called when a tasklet is scheduled. tasklet_kill was called inside the function in order to free up any scheduled tasklets. However it was called after uart_remove_one_port which destroys tty references needed in the port for atmel_tasklet_func.

[PATCH 2/4] tty/serial: at91: fix race condition in atmel_serial_remove

2014-01-07 Thread Nicolas Ferre
From: Marek Roszko mark.ros...@gmail.com The _remove callback could be called when a tasklet is scheduled. tasklet_kill was called inside the function in order to free up any scheduled tasklets. However it was called after uart_remove_one_port which destroys tty references needed in the port for