mirror of
https://github.com/torvalds/linux.git
synced 2026-11-07 06:17:02 +01:00
media: serial_ir: Fix race condition where timer can be re-armed
Ensure the timer cannot be re-armed.
Fixes: 2940c7e497 ("[media] serial_ir: generate timeout")
Signed-off-by: Sean Young <sean@mess.org>
Cc: stable@vger.kernel.org
Acked-by: Hans Verkuil <hverkuil+cisco@kernel.org>
This commit is contained in:
parent
10c8131452
commit
d74ac4016b
|
|
@ -798,7 +798,7 @@ static int __init serial_ir_init_module(void)
|
|||
|
||||
static void __exit serial_ir_exit_module(void)
|
||||
{
|
||||
timer_delete_sync(&serial_ir.timeout_timer);
|
||||
timer_shutdown_sync(&serial_ir.timeout_timer);
|
||||
serial_ir_exit();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user