ptrace: Remove second setting of PT_SEIZED in ptrace_attach
authorEric W. Biederman <ebiederm@xmission.com>
Mon, 20 Dec 2021 23:15:09 +0000 (17:15 -0600)
committerEric W. Biederman <ebiederm@xmission.com>
Sat, 8 Jan 2022 18:43:57 +0000 (12:43 -0600)
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>
kernel/ptrace.c

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