diff options
-rw-r--r-- | kernel/fork.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index bfee931ee3fb..88ef51ca84de 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -543,11 +543,15 @@ void mm_release(struct task_struct *tsk, struct mm_struct *mm) | |||
543 | 543 | ||
544 | /* Get rid of any futexes when releasing the mm */ | 544 | /* Get rid of any futexes when releasing the mm */ |
545 | #ifdef CONFIG_FUTEX | 545 | #ifdef CONFIG_FUTEX |
546 | if (unlikely(tsk->robust_list)) | 546 | if (unlikely(tsk->robust_list)) { |
547 | exit_robust_list(tsk); | 547 | exit_robust_list(tsk); |
548 | tsk->robust_list = NULL; | ||
549 | } | ||
548 | #ifdef CONFIG_COMPAT | 550 | #ifdef CONFIG_COMPAT |
549 | if (unlikely(tsk->compat_robust_list)) | 551 | if (unlikely(tsk->compat_robust_list)) { |
550 | compat_exit_robust_list(tsk); | 552 | compat_exit_robust_list(tsk); |
553 | tsk->compat_robust_list = NULL; | ||
554 | } | ||
551 | #endif | 555 | #endif |
552 | #endif | 556 | #endif |
553 | 557 | ||