]> www.infradead.org Git - users/dwmw2/linux.git/commit
serial: sh-sci: Stop RX FIFO timer during port shutdown
authorGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 6 Jul 2018 09:08:36 +0000 (11:08 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Oct 2018 23:59:04 +0000 (16:59 -0700)
commitcb39b07bf5f961eb1c5d29bf5d392b9f3461f7e2
treede51c502be9797fbd026ccabdfb9f17b491c3947
parent741b2c3b62cf8033587b24d0c44231054dbc1e4e
serial: sh-sci: Stop RX FIFO timer during port shutdown

[ Upstream commit c5a9262fa8bfed0dddc7466ef10fcd292e2af61b ]

The RX FIFO timer may be armed when the port is shut down, hence the
timer function may still be called afterwards.

Fix this race condition by deleting the timer during port shutdown.

Fixes: 039403765e5da3c6 ("serial: sh-sci: SCIFA/B RX FIFO software timeout")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Reviewed-by: Simon Horman <horms+renesas@verge.net.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sh-sci.c