linux/drivers/tty/serdev
Johan Hovold 90dbad8cd6 serdev: ttyport: fix tty locking in close
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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-28 16:00:50 +01:00
..
Kconfig serdev: enable TTY port controller support by default 2017-10-20 14:20:06 +02:00
Makefile
core.c tty: serdev: Remove redundant license text 2017-11-08 13:08:12 +01:00
serdev-ttyport.c serdev: ttyport: fix tty locking in close 2017-11-28 16:00:50 +01:00