diff options
Diffstat (limited to 'kernel/futex.c')
-rw-r--r-- | kernel/futex.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/kernel/futex.c b/kernel/futex.c index 86b2600381b6..32710451dc20 100644 --- a/kernel/futex.c +++ b/kernel/futex.c | |||
@@ -446,9 +446,7 @@ static struct task_struct * futex_find_get_task(pid_t pid) | |||
446 | struct task_struct *p; | 446 | struct task_struct *p; |
447 | 447 | ||
448 | rcu_read_lock(); | 448 | rcu_read_lock(); |
449 | p = find_task_by_pid_ns(pid, | 449 | p = find_task_by_vpid(pid); |
450 | current->nsproxy->pid_ns); | ||
451 | |||
452 | if (!p || ((current->euid != p->euid) && (current->euid != p->uid))) | 450 | if (!p || ((current->euid != p->euid) && (current->euid != p->uid))) |
453 | p = ERR_PTR(-ESRCH); | 451 | p = ERR_PTR(-ESRCH); |
454 | else | 452 | else |
@@ -1858,8 +1856,7 @@ sys_get_robust_list(int pid, struct robust_list_head __user * __user *head_ptr, | |||
1858 | 1856 | ||
1859 | ret = -ESRCH; | 1857 | ret = -ESRCH; |
1860 | rcu_read_lock(); | 1858 | rcu_read_lock(); |
1861 | p = find_task_by_pid_ns(pid, | 1859 | p = find_task_by_vpid(pid); |
1862 | current->nsproxy->pid_ns); | ||
1863 | if (!p) | 1860 | if (!p) |
1864 | goto err_unlock; | 1861 | goto err_unlock; |
1865 | ret = -EPERM; | 1862 | ret = -EPERM; |