Searched hist:"90 dbad8cd6efccbdce109d5ef0724f8434a6cdde" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/tty/serdev/ |
H A D | serdev-ttyport.c | diff 90dbad8cd6efccbdce109d5ef0724f8434a6cdde Fri Nov 03 09:30:56 CDT 2017 Johan Hovold <johan@kernel.org> 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: cd6484e1830b ("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>
|