TTY: pty, cleanup the pty counting
authorJiri Slaby <jslaby@suse.cz>
Wed, 16 Nov 2011 15:27:11 +0000 (16:27 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 17 Nov 2011 19:42:09 +0000 (11:42 -0800)
commit484af54d432c39891ff27ad0e5194d28513063cc
treecd656b995aef9ce30927fc94ca994e82558c1363
parentc0d92be6bc4fbbf6402fde2c0bc08fc4d2b58430
TTY: pty, cleanup the pty counting

Instead of the hackish way of counting ptys, let's define a specific
->remove hook both from slave and master. And decrease the count only
for master.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/tty/pty.c