diff options
Diffstat (limited to 'kernel/exit.c')
-rw-r--r-- | kernel/exit.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/exit.c b/kernel/exit.c index c98ff7a8025f..ae5d8660ddff 100644 --- a/kernel/exit.c +++ b/kernel/exit.c | |||
@@ -1014,6 +1014,7 @@ NORET_TYPE void do_exit(long code) | |||
1014 | validate_creds_for_do_exit(tsk); | 1014 | validate_creds_for_do_exit(tsk); |
1015 | 1015 | ||
1016 | preempt_disable(); | 1016 | preempt_disable(); |
1017 | exit_rcu(); | ||
1017 | /* causes final put_task_struct in finish_task_switch(). */ | 1018 | /* causes final put_task_struct in finish_task_switch(). */ |
1018 | tsk->state = TASK_DEAD; | 1019 | tsk->state = TASK_DEAD; |
1019 | schedule(); | 1020 | schedule(); |