Skip to content

Commit

Permalink
frv: use find_task_by_vpid in cxn_pin_by_pid
Browse files Browse the repository at this point in the history
The function is question gets the pid from sysctl table, so this one is a
virtual pid, i.e.  the pid of a task as it is seen from inside a namespace.

So the find_task_by_vpid() must be used here.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Pavel Emelyanov authored and Linus Torvalds committed Feb 5, 2008
1 parent 8c5900b commit 540e310
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/frv/mm/mmu-context.c
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ int cxn_pin_by_pid(pid_t pid)

/* get a handle on the mm_struct */
read_lock(&tasklist_lock);
tsk = find_task_by_pid(pid);
tsk = find_task_by_vpid(pid);
if (tsk) {
ret = -EINVAL;

Expand Down

0 comments on commit 540e310

Please sign in to comment.