Oleg Nesterov 6da8d866d0 tty: release_one_tty() forgets to put pids
release_one_tty(tty) can be called when tty still has a reference
to pgrp/session. In this case we leak the pid.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reported-by: Catalin Marinas <catalin.marinas@arm.com>
Reported-and-tested-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Acked-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2010-04-02 19:44:09 -07:00
..
2009-09-24 07:21:03 -07:00
2009-07-12 12:22:34 -07:00
2010-02-09 11:13:56 +01:00
2008-06-20 14:05:55 -06:00
2008-12-13 11:25:49 -08:00
2008-10-20 08:52:41 -07:00
2008-12-13 09:12:07 +00:00
2009-10-04 15:05:10 -07:00
2008-07-20 17:12:36 -07:00
2010-03-17 18:43:47 -07:00
2009-06-18 11:16:55 +10:00
2009-01-02 10:28:32 -08:00
2009-12-10 22:55:36 +01:00
2009-12-11 15:18:03 -08:00
2009-09-15 08:42:00 -07:00
2008-02-07 08:42:25 -08:00
2010-03-12 15:52:35 -08:00
2008-04-30 08:29:43 -07:00
2009-07-12 12:22:34 -07:00
2009-06-18 13:03:54 -07:00
2010-02-09 11:13:56 +01:00
2008-07-20 17:12:38 -07:00
2009-07-12 12:22:34 -07:00
2009-02-22 09:23:02 -08:00
2009-06-11 08:51:01 -07:00
2008-07-20 17:12:38 -07:00
2009-07-12 12:22:34 -07:00
2009-09-01 01:13:31 -07:00
2009-10-14 17:36:53 +02:00
2010-01-04 12:31:21 -08:00
2010-03-02 14:43:22 -08:00
2010-02-27 18:27:14 +01:00
2010-02-09 11:13:56 +01:00