Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 233690
b: refs/heads/master
c: a879bf5
h: refs/heads/master
v: v3
  • Loading branch information
Greg Thelen authored and Linus Torvalds committed Feb 25, 2011
1 parent 604b944 commit 6882456
Show file tree
Hide file tree
Showing 2 changed files with 4 additions 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: 22bacca48a1755f79b7e0f192ddb9fbb7fc6e64e
refs/heads/master: a879bf582dfb3a79d30d76ca3af2ae8a0f39010c
6 changes: 3 additions & 3 deletions trunk/mm/migrate.c
Original file line number Diff line number Diff line change
Expand Up @@ -1287,14 +1287,14 @@ SYSCALL_DEFINE6(move_pages, pid_t, pid, unsigned long, nr_pages,
return -EPERM;

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

if (!mm)
return -EINVAL;
Expand Down

0 comments on commit 6882456

Please sign in to comment.