]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit89ef71afa10ad38dbddba9d9544fb8c7dda54dd4
tree2a76835812d3502b036a7234faeaa0f6ba0356da
parent0afdcdb999c7dd1135bc17492a00d0ef1bb6a17d
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