diff options
author | Johan Hovold <johan@kernel.org> | 2020-10-26 11:43:06 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2020-11-04 11:11:29 +0100 |
commit | 5098e77962e7c8947f87bd8c5869c83e000a522a (patch) | |
tree | c135ce15ea6a7d15cc9c71c7281213c884bd41af /kernel/exec_domain.c | |
parent | 66c32e4833559d8683879b5fa6fe70332db53aec (diff) |
USB: serial: digi_acceleport: fix write-wakeup deadlocks
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 14b54e39b412 ("USB: serial: remove
changelogs and old todo entries")).
Fixes: 1da177e4c3f4 ("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>
Diffstat (limited to 'kernel/exec_domain.c')
0 files changed, 0 insertions, 0 deletions