summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-02-05 08:43:03 +0100
committerTony Luck <tony.luck@intel.com>2008-02-05 17:27:29 +0100
commite1b0d4ba46b42909d11ea152a6b56ee76f062ca3 (patch)
tree103c5058abed248bed610396c28341bad7fe8701 /arch
parent[IA64] honor notify_die() returning NOTIFY_STOP (diff)
downloadlinux-e1b0d4ba46b42909d11ea152a6b56ee76f062ca3.tar.xz
linux-e1b0d4ba46b42909d11ea152a6b56ee76f062ca3.zip
[IA64] make pfm_get_task work with virtual pids
This pid comes from user space, so treat it accordingly. Signed-off-by: Pavel Emelyanov <xemul@openvz.org> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/ia64/kernel/perfmon.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c
index 48e560922be6..78acd9fe97e9 100644
--- a/arch/ia64/kernel/perfmon.c
+++ b/arch/ia64/kernel/perfmon.c
@@ -2654,11 +2654,11 @@ pfm_get_task(pfm_context_t *ctx, pid_t pid, struct task_struct **task)
/* XXX: need to add more checks here */
if (pid < 2) return -EPERM;
- if (pid != current->pid) {
+ if (pid != task_pid_vnr(current)) {
read_lock(&tasklist_lock);
- p = find_task_by_pid(pid);
+ p = find_task_by_vpid(pid);
/* make sure task cannot go away while we operate on it */
if (p) get_task_struct(p);