diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-10-05 16:18:03 (GMT) |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2009-10-06 15:00:01 (GMT) |
commit | 322a2c100a8998158445599ea437fb556aa95b11 (patch) | |
tree | 8039af7452e0fac73f3083cb7e9c1e00d3007811 /kernel/fork.c | |
parent | fc6b177dee33365ccb29fe6d2092223cf8d679f9 (diff) | |
download | linux-322a2c100a8998158445599ea437fb556aa95b11.tar.xz |
futex: Move exit_pi_state() call to release_mm()
exit_pi_state() is called from do_exit() but not from do_execve().
Move it to release_mm() so it gets called from do_execve() as well.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
LKML-Reference: <new-submission>
Cc: stable@kernel.org
Cc: Anirban Sinha <ani@anirban.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 88ef51c..341965b 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -553,6 +553,8 @@ void mm_release(struct task_struct *tsk, struct mm_struct *mm) tsk->compat_robust_list = NULL; } #endif + if (unlikely(!list_empty(&tsk->pi_state_list))) + exit_pi_state_list(tsk); #endif /* Get rid of any cached register state */ |