projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f82198
)
sched, autogroup: Fix reference leak
author
Mike Galbraith
<
[email protected]
>
Fri, 31 Dec 2010 08:32:30 +0000
(09:32 +0100)
committer
Ingo Molnar
<
[email protected]
>
Tue, 4 Jan 2011 14:10:36 +0000
(15:10 +0100)
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 <
[email protected]
>
Signed-off-by: Peter Zijlstra <
[email protected]
>
Cc: Oleg Nesterov <
[email protected]
>
LKML-Reference: <
1293784350
[email protected]
>
Signed-off-by: Ingo Molnar <
[email protected]
>
kernel/fork.c
patch
|
blob
|
history
diff --git
a/kernel/fork.c
b/kernel/fork.c
index b6f2475f1e83a9f81e7b5ea6c003d8cb60f5a774..06724449596614c13d78495a26c53cf6f845658d 100644
(file)
--- 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: