tty: Fix UML console breakage
[deliverable/linux.git] / drivers / tty / tty_io.c
index 8d26ed79bb4c593a1dabbd4ab76b45be2338e8fc..876878a7704ff99e81314d559269f2cbf25f4a1a 100644 (file)
@@ -2158,7 +2158,7 @@ retry_open:
        read_lock(&tasklist_lock);
        spin_lock_irq(&current->sighand->siglock);
        noctty = (filp->f_flags & O_NOCTTY) ||
-                       device == MKDEV(TTY_MAJOR, 0) ||
+                       (IS_ENABLED(CONFIG_VT) && device == MKDEV(TTY_MAJOR, 0)) ||
                        device == MKDEV(TTYAUX_MAJOR, 1) ||
                        (tty->driver->type == TTY_DRIVER_TYPE_PTY &&
                         tty->driver->subtype == PTY_TYPE_MASTER);
This page took 0.023458 seconds and 5 git commands to generate.