From: Mike Galbraith Date: Fri, 31 Dec 2010 08:32:30 +0000 (+0100) Subject: sched, autogroup: Fix reference leak X-Git-Tag: Ubuntu-5.0.0-8.9~20764^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=101e5f77bf35679809586e250b6c62193d2ed179;p=mirror_ubuntu-disco-kernel.git 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 Signed-off-by: Peter Zijlstra Cc: Oleg Nesterov LKML-Reference: <1293784350.6839.2.camel@marge.simson.net> Signed-off-by: Ingo Molnar --- 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: } bad_fork_cleanup_signal: if (!(clone_flags & CLONE_THREAD)) - free_signal_struct(p->signal); + put_signal_struct(p->signal); bad_fork_cleanup_sighand: __cleanup_sighand(p->sighand); bad_fork_cleanup_fs: