diff options
author | Peter Hurley <[email protected]> | 2015-10-10 20:28:44 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2015-10-17 21:30:49 -0700 |
commit | 4b41b9539a1e9531f942ededfcdcff372317d2e7 (patch) | |
tree | c32d3b6fd91a8a8af7d498400c6ef3fcd73c7496 /net/unix/af_unix.c | |
parent | 1e86b5bf15e2be662df303b7067ac08247713401 (diff) |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions