diff options
author | Marek Roszko <mark.roszko@gmail.com> | 2014-01-07 11:45:07 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-01-07 17:10:24 -0800 |
commit | f50c995f9ebf064cea1368bf361c4e29679415b4 (patch) | |
tree | 569e765bd72fa61fb768a5e7e7ae0357dd5b9081 /Kbuild | |
parent | 0cc7c6c7916b1b6f34350ff1473b80b9f7e459c0 (diff) | |
download | op-kernel-dev-f50c995f9ebf064cea1368bf361c4e29679415b4.zip op-kernel-dev-f50c995f9ebf064cea1368bf361c4e29679415b4.tar.gz |
tty/serial: at91: fix race condition in atmel_serial_remove
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.
Simply putting the tasklet_kill at the start of the function will prevent this
conflict.
Signed-off-by: Marek Roszko <mark.roszko@gmail.com>
Acked-by: Leilei Zhao <leilei.zhao@atmel.com>
Cc: <stable@vger.kernel.org> # v3.12
Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions