aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/ptrace.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r--kernel/ptrace.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index 8aad0331d82e..4d50e06fd745 100644
--- a/kernel/ptrace.c
+++ b/kernel/ptrace.c
@@ -440,6 +440,7 @@ struct task_struct *ptrace_get_task_struct(pid_t pid)
440 child = find_task_by_pid(pid); 440 child = find_task_by_pid(pid);
441 if (child) 441 if (child)
442 get_task_struct(child); 442 get_task_struct(child);
443
443 read_unlock(&tasklist_lock); 444 read_unlock(&tasklist_lock);
444 if (!child) 445 if (!child)
445 return ERR_PTR(-ESRCH); 446 return ERR_PTR(-ESRCH);