Subject: [PATCH] More fixes for pspace support From: Eric W. Biederman Date: 1130180281 -0600 --- arch/frv/mm/mmu-context.c | 2 +- arch/ia64/kernel/perfmon.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 6bf7332c34faccd6631786245d2f93312a66e97d diff --git a/arch/frv/mm/mmu-context.c b/arch/frv/mm/mmu-context.c index f2c6866..84e22d0 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_pid(current->pspace, pid); if (tsk) { ret = -EINVAL; diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c index d71731e..5805de8 100644 --- a/arch/ia64/kernel/perfmon.c +++ b/arch/ia64/kernel/perfmon.c @@ -2619,7 +2619,7 @@ pfm_get_task(pfm_context_t *ctx, pid_t p read_lock(&tasklist_lock); - p = find_task_by_pid(pid); + p = find_task_by_pid(current->pspace, pid); /* make sure task cannot go away while we operate on it */ if (p) get_task_struct(p); -- 1.0.GIT