tty: Move the handling of the tty release logic
Now that we don't have tty->termios tied to drivers->tty we can untangle the logic here. In addition we can push the removal logic out of the destructor path. At that point we can think about sorting out tty_port and console and all the other ugly hangovers. Signed-off-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
@@ -2850,7 +2850,6 @@ static void con_shutdown(struct tty_struct *tty)
|
||||
console_lock();
|
||||
vc->port.tty = NULL;
|
||||
console_unlock();
|
||||
tty_shutdown(tty);
|
||||
}
|
||||
|
||||
static int default_italic_color = 2; // green (ASCII)
|
||||
|
Reference in New Issue
Block a user