diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2021-12-21 00:15:09 +0100 |
---|---|---|
committer | Eric W. Biederman <ebiederm@xmission.com> | 2022-01-08 19:43:57 +0100 |
commit | 6707d0fc60576fa8ef2dfa2f9009b606df35ba24 (patch) | |
tree | e59953e648e2594dab30c26d53b4f9e82118545c /kernel/ptrace.c | |
parent | taskstats: Cleanup the use of task->exit_code (diff) | |
download | linux-6707d0fc60576fa8ef2dfa2f9009b606df35ba24.tar.xz linux-6707d0fc60576fa8ef2dfa2f9009b606df35ba24.zip |
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>
Diffstat (limited to 'kernel/ptrace.c')
-rw-r--r-- | kernel/ptrace.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/ptrace.c b/kernel/ptrace.c index f8589bf8d7dc..eea265082e97 100644 --- a/kernel/ptrace.c +++ b/kernel/ptrace.c @@ -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); |