Searched hist:"4 b41b953" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/drivers/tty/ |
H A D | tty_io.c | 4b41b953 Sat Oct 10 19:28:44 CDT 2015 Peter Hurley <peter@hurleysoftware.com> tty: Prevent tty teardown during tty_write_message()
tty_write_message() allows the caller to directly write to a specific tty. Since the line discipline is bypassed for the direct write, nothing prevents the tty from being torn down after the tty count is checked.
Hold the tty lock for the duration of the direct write.
Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 4b41b953 Sat Oct 10 19:28:44 CDT 2015 Peter Hurley <peter@hurleysoftware.com> tty: Prevent tty teardown during tty_write_message() tty_write_message() allows the caller to directly write to a specific tty. Since the line discipline is bypassed for the direct write, nothing prevents the tty from being torn down after the tty count is checked. Hold the tty lock for the duration of the direct write. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|