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: 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>
2017-11-28 16:00:50 +01:00
..
2017-11-13 21:05:31 -08:00
2017-11-21 15:57:07 -08:00
2017-11-28 16:00:50 +01:00
2017-11-28 15:55:15 +01:00
2017-11-21 15:57:05 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-21 15:57:05 -08:00
2017-11-08 14:27:10 +01:00
2017-11-08 13:08:12 +01:00
2017-11-21 15:57:05 -08:00
2017-09-10 09:57:23 -07:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-21 15:57:05 -08:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-21 15:57:07 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-21 15:57:07 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-21 15:57:05 -08:00
2017-11-02 11:10:55 +01:00
2017-11-21 15:57:07 -08:00
2017-11-21 15:57:07 -08:00
2017-11-21 15:57:07 -08:00
2017-11-13 21:05:31 -08:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-08 13:08:12 +01:00
2017-11-13 21:05:31 -08:00
2017-11-08 13:08:12 +01:00
2017-11-02 11:10:55 +01:00
2017-11-08 13:08:12 +01:00
2017-11-04 12:01:54 +01:00