Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 83325
b: refs/heads/master
c: e1b0d4b
h: refs/heads/master
i:
  83323: f8289ef
v: v3
  • Loading branch information
Pavel Emelyanov authored and Tony Luck committed Feb 5, 2008
1 parent a3c7bcb commit a53abe6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 620de2f5dc697f906408743b1139fe5fb7b0b7f8
refs/heads/master: e1b0d4ba46b42909d11ea152a6b56ee76f062ca3
4 changes: 2 additions & 2 deletions trunk/arch/ia64/kernel/perfmon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit a53abe6

Please sign in to comment.