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:
@ -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);
|
||||
|
Reference in New Issue
Block a user