OSDN Git Service

Merge tag 'asm-generic-5.18' of git://git.kernel.org/pub/scm/linux/kernel/git/arnd...
[uclinux-h8/linux.git] / kernel / exit.c
index 0884a75..f5459e2 100644 (file)
@@ -735,7 +735,7 @@ void __noreturn do_exit(long code)
        struct task_struct *tsk = current;
        int group_dead;
 
-       WARN_ON(blk_needs_flush_plug(tsk));
+       WARN_ON(tsk->plug);
 
        kcov_task_exit(tsk);
 
@@ -831,6 +831,7 @@ void __noreturn do_exit(long code)
                put_page(tsk->task_frag.page);
 
        validate_creds_for_do_exit(tsk);
+       exit_task_stack_account(tsk);
 
        check_stack_usage();
        preempt_disable();