Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165673
b: refs/heads/master
c: a2322e1
h: refs/heads/master
i:
  165671: 7256f45
v: v3
  • Loading branch information
Oleg Nesterov authored and Linus Torvalds committed Sep 24, 2009
1 parent 41dc9b4 commit 239e7f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a7f0765edfd53aed09cb7b0e15863688b39447de
refs/heads/master: a2322e1d272938d192d8c24cdacf57c0c7a2683f
7 changes: 1 addition & 6 deletions trunk/kernel/exit.c
Original file line number Diff line number Diff line change
Expand Up @@ -1112,8 +1112,6 @@ static struct pid *task_pid_type(struct task_struct *task, enum pid_type type)

static int eligible_child(struct wait_opts *wo, struct task_struct *p)
{
int err;

if (wo->wo_type < PIDTYPE_MAX) {
if (task_pid_type(p, wo->wo_type) != wo->wo_pid)
return 0;
Expand All @@ -1128,10 +1126,6 @@ static int eligible_child(struct wait_opts *wo, struct task_struct *p)
&& !(wo->wo_flags & __WALL))
return 0;

err = security_task_wait(p);
if (err)
return err;

return 1;
}

Expand Down Expand Up @@ -1492,6 +1486,7 @@ static int wait_consider_task(struct wait_opts *wo, struct task_struct *parent,
if (!ret)
return ret;

ret = security_task_wait(p);
if (unlikely(ret < 0)) {
/*
* If we have not yet seen any eligible child,
Expand Down

0 comments on commit 239e7f0

Please sign in to comment.