diff options
author | Mike Galbraith <efault@gmx.de> | 2010-12-31 03:32:30 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-01-04 09:10:36 -0500 |
commit | 101e5f77bf35679809586e250b6c62193d2ed179 (patch) | |
tree | 7756de0a3d1d859e05a85134dee2d8e70616d287 /kernel/fork.c | |
parent | 4f8219875a0dad2cfad9e93a3fafcd9626db98d2 (diff) |
sched, autogroup: Fix reference leak
The cgroup exit mess also uncovered a struct autogroup reference leak.
copy_process() was simply freeing vs putting the signal_struct,
stranding a reference.
Signed-off-by: Mike Galbraith <efault@gmx.de>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Oleg Nesterov <oleg@redhat.com>
LKML-Reference: <1293784350.6839.2.camel@marge.simson.net>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index b6f2475f1e83..067244495966 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -1317,7 +1317,7 @@ bad_fork_cleanup_mm: | |||
1317 | } | 1317 | } |
1318 | bad_fork_cleanup_signal: | 1318 | bad_fork_cleanup_signal: |
1319 | if (!(clone_flags & CLONE_THREAD)) | 1319 | if (!(clone_flags & CLONE_THREAD)) |
1320 | free_signal_struct(p->signal); | 1320 | put_signal_struct(p->signal); |
1321 | bad_fork_cleanup_sighand: | 1321 | bad_fork_cleanup_sighand: |
1322 | __cleanup_sighand(p->sighand); | 1322 | __cleanup_sighand(p->sighand); |
1323 | bad_fork_cleanup_fs: | 1323 | bad_fork_cleanup_fs: |