diff options
| -rw-r--r-- | kernel/exit.c | 2 | ||||
| -rw-r--r-- | kernel/fork.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index ae5d8660ddf..bc2b1fdfc35 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
| @@ -989,8 +989,6 @@ NORET_TYPE void do_exit(long code) | |||
| 989 | tsk->mempolicy = NULL; | 989 | tsk->mempolicy = NULL; |
| 990 | #endif | 990 | #endif |
| 991 | #ifdef CONFIG_FUTEX | 991 | #ifdef CONFIG_FUTEX |
| 992 | if (unlikely(!list_empty(&tsk->pi_state_list))) | ||
| 993 | exit_pi_state_list(tsk); | ||
| 994 | if (unlikely(current->pi_state_cache)) | 992 | if (unlikely(current->pi_state_cache)) |
| 995 | kfree(current->pi_state_cache); | 993 | kfree(current->pi_state_cache); |
| 996 | #endif | 994 | #endif |
diff --git a/kernel/fork.c b/kernel/fork.c index 88ef51ca84d..341965b0ab1 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
| @@ -553,6 +553,8 @@ void mm_release(struct task_struct *tsk, struct mm_struct *mm) | |||
| 553 | tsk->compat_robust_list = NULL; | 553 | tsk->compat_robust_list = NULL; |
| 554 | } | 554 | } |
| 555 | #endif | 555 | #endif |
| 556 | if (unlikely(!list_empty(&tsk->pi_state_list))) | ||
| 557 | exit_pi_state_list(tsk); | ||
| 556 | #endif | 558 | #endif |
| 557 | 559 | ||
| 558 | /* Get rid of any cached register state */ | 560 | /* Get rid of any cached register state */ |
