Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 28957
b: refs/heads/master
c: 22fb52d
h: refs/heads/master
i:
  28955: 6bf30db
v: v3
  • Loading branch information
David Quigley authored and Linus Torvalds committed Jun 23, 2006
1 parent c93b182 commit 819cd35
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e7834f8fccd791225a1cf91c2c3e740ad8e2e145
refs/heads/master: 22fb52dd736a62e24c44c50739007496265dc38c
8 changes: 8 additions & 0 deletions trunk/kernel/cpuset.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
#include <linux/rcupdate.h>
#include <linux/sched.h>
#include <linux/seq_file.h>
#include <linux/security.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/spinlock.h>
Expand Down Expand Up @@ -1177,6 +1178,7 @@ static int attach_task(struct cpuset *cs, char *pidbuf, char **ppathbuf)
cpumask_t cpus;
nodemask_t from, to;
struct mm_struct *mm;
int retval;

if (sscanf(pidbuf, "%d", &pid) != 1)
return -EIO;
Expand Down Expand Up @@ -1205,6 +1207,12 @@ static int attach_task(struct cpuset *cs, char *pidbuf, char **ppathbuf)
get_task_struct(tsk);
}

retval = security_task_setscheduler(tsk, 0, NULL);
if (retval) {
put_task_struct(tsk);
return retval;
}

mutex_lock(&callback_mutex);

task_lock(tsk);
Expand Down

0 comments on commit 819cd35

Please sign in to comment.