]> git.baikalelectronics.ru Git - kernel.git/commit
tty: n_gsm: replace kicktimer with delayed_work
authorFedor Pchelkin <pchelkin@ispras.ru>
Mon, 29 Aug 2022 13:16:39 +0000 (16:16 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 30 Aug 2022 12:37:40 +0000 (14:37 +0200)
commit5c6afebe003e12ee2eb66f136cecf327c446daf4
tree6b0a4a3672cb5e27b59cd7d1db9586ca17594d7b
parent27bda92d9153128ccc9c89521bd1b5cb550b7bda
tty: n_gsm: replace kicktimer with delayed_work

A kick_timer timer_list is replaced with kick_timeout delayed_work to be
able to synchronize with mutexes as a prerequisite for the introduction
of tx_mutex.

Found by Linux Verification Center (linuxtesting.org) with Syzkaller.

Fixes: 163550d68933 ("tty: n_gsm: fix missing timer to handle stalled links")
Cc: stable <stable@kernel.org>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Suggested-by: Hillf Danton <hdanton@sina.com>
Signed-off-by: Fedor Pchelkin <pchelkin@ispras.ru>
Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Link: https://lore.kernel.org/r/20220829131640.69254-2-pchelkin@ispras.ru
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_gsm.c