]> git.baikalelectronics.ru Git - kernel.git/commit
tty: Consolidate noctty checks in tty_open()
authorPeter Hurley <peter@hurleysoftware.com>
Sun, 10 Jan 2016 05:13:52 +0000 (21:13 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Jan 2016 22:28:20 +0000 (14:28 -0800)
commit8e4afbc6e3cdc64b490b54de1965373d1b7953b6
treea6d0d89a51135068138156a67f8be85201ead940
parentb39a076f9cdd1c6758860dbf657231dc4fdc96c8
tty: Consolidate noctty checks in tty_open()

Evaluate the conditions which prevent this tty being the controlling
terminal in one place, just before setting the controlling terminal.

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