tty: Add a kref count
authorAlan Cox <alan@redhat.com>
Mon, 13 Oct 2008 09:37:26 +0000 (10:37 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 13 Oct 2008 16:51:40 +0000 (09:51 -0700)
commit9c9f4ded90a59eee84e15f5fd38c03d60184e112
tree925a7f7c30136477b3f8551123fd86b355fd60fb
parent348eb12e5598be97400c749d3d93a71856ae0b2b
tty: Add a kref count

Introduce a kref to the tty structure and use it to protect the tty->signal
tty references. For now we don't introduce it for anything else.

Signed-off-by: Alan Cox <alan@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/char/tty_io.c
include/linux/tty.h
kernel/fork.c
kernel/sys.c