tty: kref the tty driver object

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Alan Cox
2008-10-13 10:42:09 +01:00
committed by Linus Torvalds
parent 99f1fe189d
commit 7d7b93c145
5 changed files with 81 additions and 59 deletions

View File

@ -571,8 +571,11 @@ static void __init unix98_pty_init(void)
if (tty_register_driver(pts_driver))
panic("Couldn't register Unix98 pts driver");
/* FIXME: WTF */
#if 0
pty_table[1].data = &ptm_driver->refcount;
register_sysctl_table(pty_root_table);
#endif
register_sysctl_table(pty_root_table);
/* Now create the /dev/ptmx special device */
tty_default_fops(&ptmx_fops);