Files
linux/drivers
Johan Hovold ade611b4d3 USB: serial: digi_acceleport: fix write-wakeup deadlocks
[ Upstream commit 5098e77962 ]

The driver must not call tty_wakeup() while holding its private lock as
line disciplines are allowed to call back into write() from
write_wakeup(), leading to a deadlock.

Also remove the unneeded work struct that was used to defer wakeup in
order to work around a possible race in ancient times (see comment about
n_tty write_chan() in commit 14b54e39b4 ("USB: serial: remove
changelogs and old todo entries")).

Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-16 10:00:18 +09:00
..
2023-05-12 16:27:16 +09:00
2023-05-16 09:44:24 +09:00
2023-05-16 09:48:44 +09:00
2023-05-15 12:46:28 +09:00
2023-05-16 09:44:41 +09:00
2023-05-16 09:58:13 +09:00
2023-05-15 10:37:00 +09:00
2023-05-15 09:23:01 +09:00
2023-05-15 08:28:33 +09:00
2023-05-15 16:59:11 +09:00