tty: Move the leader test in disassociate
authorAlan Cox <alan@linux.intel.com>
Mon, 30 Nov 2009 13:18:45 +0000 (13:18 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 23:18:08 +0000 (15:18 -0800)
commit5ec93d1154fd1e269162398f8e70efc7e004485d
tree2a76835812d3502b036a7234faeaa0f6ba0356da
parent38c70b27f9502c31c1d0c29676275f7362cdb0d9
tty: Move the leader test in disassociate

There are two call points, both want to check that tty->signal->leader is
set. Move the test into disassociate_ctty() as that will make locking
changes easier in a bit

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/char/tty_io.c
kernel/exit.c