[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>

authored by Pavel Emelyanov and committed by Tony Luck e1b0d4ba 620de2f5

+2 -2
+2 -2
arch/ia64/kernel/perfmon.c
··· 2654 2654 /* XXX: need to add more checks here */ 2655 2655 if (pid < 2) return -EPERM; 2656 2656 2657 - if (pid != current->pid) { 2657 + if (pid != task_pid_vnr(current)) { 2658 2658 2659 2659 read_lock(&tasklist_lock); 2660 2660 2661 - p = find_task_by_pid(pid); 2661 + p = find_task_by_vpid(pid); 2662 2662 2663 2663 /* make sure task cannot go away while we operate on it */ 2664 2664 if (p) get_task_struct(p);