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:
Родитель
1b5a42d9c8
Коммит
6707d0fc60
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче