]> git.baikalelectronics.ru Git - kernel.git/commit
n_tty: Remove tty count checks from unthrottle
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 05:45:13 +0000 (21:45 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jan 2016 19:58:02 +0000 (11:58 -0800)
commite1cff84fa21ea5836b171e558727cdcc1165538f
tree663966919757c58a0f737ad50f98594f7d93b081
parent6256f3ed0dd17e5fe46b0e13f90a28bb97bd83f8
n_tty: Remove tty count checks from unthrottle

Since n_tty_check_unthrottle() is only called from n_tty_read()
which only originates from a userspace read(), the tty count cannot
be 0; the read() guarantees the file descriptor has not yet been
released.

Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/n_tty.c