tty: Make vt's have a tty_port
commitff917ba4f1a6189f90ed2c975984d6a1a1dc553d
authorAlan Cox <alan@linux.intel.com>
Tue, 1 Jun 2010 20:52:55 +0000 (1 22:52 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 20:47:41 +0000 (10 13:47 -0700)
treea53853d16c578dafee829ebe7645e724d184fab9
parente33ac1c10b6baaac68d18d931e120d8b96e8c5f8
tty: Make vt's have a tty_port

The vt layer isn't safely handling reference counts to tty object on the input
side. Add a tty port structure to the vt layer in order to implement this using
the standard helpers.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/vt.c
include/linux/console_struct.h