aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-02-05 01:29:56 -0500
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-05 12:44:20 -0500
commit540e3102f75dca9c5e614905527599de18294cc8 (patch)
treee5a257f784e99bc50e9bca426f86185a8a87b447 /arch
parent8c5900b2d669c7aac1e5b3e8bb8e331a0e6cff61 (diff)
frv: use find_task_by_vpid in cxn_pin_by_pid
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>
Diffstat (limited to 'arch')
-rw-r--r--arch/frv/mm/mmu-context.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/frv/mm/mmu-context.c b/arch/frv/mm/mmu-context.c
index 1530a4111e6d..81757d55a5b5 100644
--- a/arch/frv/mm/mmu-context.c
+++ b/arch/frv/mm/mmu-context.c
@@ -181,7 +181,7 @@ int cxn_pin_by_pid(pid_t pid)
181 181
182 /* get a handle on the mm_struct */ 182 /* get a handle on the mm_struct */
183 read_lock(&tasklist_lock); 183 read_lock(&tasklist_lock);
184 tsk = find_task_by_pid(pid); 184 tsk = find_task_by_vpid(pid);
185 if (tsk) { 185 if (tsk) {
186 ret = -EINVAL; 186 ret = -EINVAL;
187 187