frv: use find_task_by_vpid in cxn_pin_by_pid

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Linux Kernel Mailing List
Date: Tuesday, February 5, 2008 - 1:02 pm

Gitweb:     http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=540e31...
Commit:     540e3102f75dca9c5e614905527599de18294cc8
Parent:     8c5900b2d669c7aac1e5b3e8bb8e331a0e6cff61
Author:     Pavel Emelyanov <xemul@openvz.org>
AuthorDate: Mon Feb 4 22:29:56 2008 -0800
Committer:  Linus Torvalds <torvalds@woody.linux-foundation.org>
CommitDate: Tue Feb 5 09:44:20 2008 -0800

    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>
---
 arch/frv/mm/mmu-context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/frv/mm/mmu-context.c b/arch/frv/mm/mmu-context.c
index 1530a41..81757d5 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)
 
 	/* 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;
 
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
frv: use find_task_by_vpid in cxn_pin_by_pid, Linux Kernel Mailing ..., (Tue Feb 5, 1:02 pm)