diff options
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r-- | kernel/ptrace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index 66e99eb2d8a6..b0ace60ce596 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c | |||
@@ -444,8 +444,7 @@ struct task_struct *ptrace_get_task_struct(pid_t pid) | |||
444 | return ERR_PTR(-EPERM); | 444 | return ERR_PTR(-EPERM); |
445 | 445 | ||
446 | read_lock(&tasklist_lock); | 446 | read_lock(&tasklist_lock); |
447 | child = find_task_by_pid_ns(pid, | 447 | child = find_task_by_vpid(pid); |
448 | current->nsproxy->pid_ns); | ||
449 | if (child) | 448 | if (child) |
450 | get_task_struct(child); | 449 | get_task_struct(child); |
451 | 450 | ||