[POWERPC] Fix CPU hotplug when using the SLB shadow buffer
[cascardo/linux.git] / kernel / capability.c
index d4377c5..efbd9cd 100644 (file)
@@ -63,8 +63,7 @@ asmlinkage long sys_capget(cap_user_header_t header, cap_user_data_t dataptr)
        read_lock(&tasklist_lock);
 
        if (pid && pid != task_pid_vnr(current)) {
-               target = find_task_by_pid_ns(pid,
-                               current->nsproxy->pid_ns);
+               target = find_task_by_vpid(pid);
                if (!target) {
                        ret = -ESRCH;
                        goto out;
@@ -97,7 +96,7 @@ static inline int cap_set_pg(int pgrp_nr, kernel_cap_t *effective,
        int found = 0;
        struct pid *pgrp;
 
-       pgrp = find_pid_ns(pgrp_nr, current->nsproxy->pid_ns);
+       pgrp = find_vpid(pgrp_nr);
        do_each_pid_task(pgrp, PIDTYPE_PGID, g) {
                target = g;
                while_each_thread(g, target) {
@@ -198,8 +197,7 @@ asmlinkage long sys_capset(cap_user_header_t header, const cap_user_data_t data)
        read_lock(&tasklist_lock);
 
        if (pid > 0 && pid != task_pid_vnr(current)) {
-               target = find_task_by_pid_ns(pid,
-                               current->nsproxy->pid_ns);
+               target = find_task_by_vpid(pid);
                if (!target) {
                        ret = -ESRCH;
                        goto out;