Commit 101e5f77 authored by Mike Galbraith's avatar Mike Galbraith Committed by Ingo Molnar
Browse files

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: default avatarMike Galbraith <>
Signed-off-by: default avatarPeter Zijlstra <>
Cc: Oleg Nesterov <>
LKML-Reference: <>
Signed-off-by: default avatarIngo Molnar <>
parent 4f821987
...@@ -1317,7 +1317,7 @@ bad_fork_cleanup_mm: ...@@ -1317,7 +1317,7 @@ bad_fork_cleanup_mm:
} }
bad_fork_cleanup_signal: bad_fork_cleanup_signal:
if (!(clone_flags & CLONE_THREAD)) if (!(clone_flags & CLONE_THREAD))
free_signal_struct(p->signal); put_signal_struct(p->signal);
bad_fork_cleanup_sighand: bad_fork_cleanup_sighand:
__cleanup_sighand(p->sighand); __cleanup_sighand(p->sighand);
bad_fork_cleanup_fs: bad_fork_cleanup_fs:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment