ptrace: Remove second setting of PT_SEIZED in ptrace_attach

The code is totally redundant remove it.

Link: https://lkml.kernel.org/r/20220103213312.9144-6-ebiederm@xmission.com
Signed-off-by: "Eric W. Biederman" <ebiederm@xmission.com>
This commit is contained in:
Eric W. Biederman 2021-12-20 17:15:09 -06:00
parent 1b5a42d9c8
commit 6707d0fc60
1 changed files with 0 additions and 2 deletions

View File

@ -419,8 +419,6 @@ static int ptrace_attach(struct task_struct *task, long request,
if (task->ptrace) if (task->ptrace)
goto unlock_tasklist; goto unlock_tasklist;
if (seize)
flags |= PT_SEIZED;
task->ptrace = flags; task->ptrace = flags;
ptrace_link(task, current); ptrace_link(task, current);