aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/exit.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index dd83c8419101..7ef355dd3dca 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -1581,7 +1581,7 @@ repeat:
1581 (!wo->wo_pid || hlist_empty(&wo->wo_pid->tasks[wo->wo_type]))) 1581 (!wo->wo_pid || hlist_empty(&wo->wo_pid->tasks[wo->wo_type])))
1582 goto notask; 1582 goto notask;
1583 1583
1584 current->state = TASK_INTERRUPTIBLE; 1584 set_current_state(TASK_INTERRUPTIBLE);
1585 read_lock(&tasklist_lock); 1585 read_lock(&tasklist_lock);
1586 tsk = current; 1586 tsk = current;
1587 do { 1587 do {
@@ -1608,7 +1608,7 @@ notask:
1608 } 1608 }
1609 } 1609 }
1610end: 1610end:
1611 current->state = TASK_RUNNING; 1611 __set_current_state(TASK_RUNNING);
1612 remove_wait_queue(&current->signal->wait_chldexit,&wait); 1612 remove_wait_queue(&current->signal->wait_chldexit,&wait);
1613 if (wo->wo_info) { 1613 if (wo->wo_info) {
1614 struct siginfo __user *infop = wo->wo_info; 1614 struct siginfo __user *infop = wo->wo_info;