tty: Fix UML console breakage
authorPeter Hurley <peter@hurleysoftware.com>
Fri, 1 Apr 2016 00:05:30 +0000 (17:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Apr 2016 00:14:14 +0000 (17:14 -0700)
commitda5a0fc6743df9b5a3e9f915a1ed16f45465d529
tree1fcd79503df9d297161d588af978ee996432b6ea
parentf55532a0c0b8bb6148f4e07853b876ef73bc69ca
tty: Fix UML console breakage

User-Mode Linux supplies an alternate TTY_MAJOR driver for stdio console,
so the noctty check in tty_open() must apply only to VT driver tty0
devnode and not the UML console driver tty0 devnode.

Fixes: 11e1d4aa4da1 ("tty: Consolidate noctty checks in tty_open()")
Reported-by: Richard Weinberger <richard.weinberger@gmail.com>
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/tty_io.c
This page took 0.02506 seconds and 5 git commands to generate.