linux/drivers/tty/serdev
Johan Hovold ce42ed5ae8 serdev: ttyport: fix tty locking in close
commit 90dbad8cd6 upstream.

Make sure to hold the tty lock as required when calling tty-driver
close() (e.g. to avoid racing with hangup()).

Note that the serport active flag is currently set under the lock at
controller open, but really isn't protected by it.

Fixes: cd6484e183 ("serdev: Introduce new bus for serial attached devices")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2017-12-14 09:52:44 +01:00
..
core.c serdev: fix registration of second slave 2017-11-30 08:40:39 +00:00
Kconfig serdev: add a tty port controller driver 2017-02-03 10:17:02 +01:00
Makefile serdev: add a tty port controller driver 2017-02-03 10:17:02 +01:00
serdev-ttyport.c serdev: ttyport: fix tty locking in close 2017-12-14 09:52:44 +01:00