Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 230729
b: refs/heads/master
c: 1e50df3
h: refs/heads/master
i:
  230727: 95fbad2
v: v3
  • Loading branch information
KOSAKI Motohiro authored and Linus Torvalds committed Jan 14, 2011
1 parent 79f65ae commit 4584b53
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 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: 53a7706d5ed8f1a53ba062b318773160cc476dde
refs/heads/master: 1e50df39f6e2c3a4a3394df62baa8a213df16c54
3 changes: 0 additions & 3 deletions trunk/mm/mempolicy.c
Original file line number Diff line number Diff line change
Expand Up @@ -1310,16 +1310,13 @@ SYSCALL_DEFINE4(migrate_pages, pid_t, pid, unsigned long, maxnode,

/* Find the mm_struct */
rcu_read_lock();
read_lock(&tasklist_lock);
task = pid ? find_task_by_vpid(pid) : current;
if (!task) {
read_unlock(&tasklist_lock);
rcu_read_unlock();
err = -ESRCH;
goto out;
}
mm = get_task_mm(task);
read_unlock(&tasklist_lock);
rcu_read_unlock();

err = -EINVAL;
Expand Down

0 comments on commit 4584b53

Please sign in to comment.