diff options
author | Peter Hurley <peter@hurleysoftware.com> | 2016-01-10 22:40:56 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-17 12:31:02 -0800 |
commit | cccd9546e993ddcd10a482e43a821420cb09c05d (patch) | |
tree | 6b0fffaf39eae0fe8eed7c46a2b928a9f6688fa5 /include/linux/tty.h | |
parent | 46f0b319cd828cc52bce8a94ff6c010efbfbb660 (diff) | |
download | lwn-cccd9546e993ddcd10a482e43a821420cb09c05d.tar.gz lwn-cccd9546e993ddcd10a482e43a821420cb09c05d.zip |
n_tty: Fix unsafe reference to "other" ldisc
commit 6d27a63caad3f13e96cf065d2d96828c2006be6b upstream.
Although n_tty_check_unthrottle() has a valid ldisc reference (since
the tty core gets the ldisc ref in tty_read() before calling the line
discipline read() method), it does not have a valid ldisc reference to
the "other" pty of a pty pair. Since getting an ldisc reference for
tty->link essentially open-codes tty_wakeup(), just replace with the
equivalent tty_wakeup().
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/tty.h')
0 files changed, 0 insertions, 0 deletions