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)
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>

No differences found