Skip to content

Commit 6707d0f

Browse files
committed
ptrace: Remove second setting of PT_SEIZED in ptrace_attach
The code is totally redundant remove it. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: "Eric W. Biederman" <[email protected]>
1 parent 1b5a42d commit 6707d0f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/ptrace.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -419,8 +419,6 @@ static int ptrace_attach(struct task_struct *task, long request,
419419
if (task->ptrace)
420420
goto unlock_tasklist;
421421

422-
if (seize)
423-
flags |= PT_SEIZED;
424422
task->ptrace = flags;
425423

426424
ptrace_link(task, current);

0 commit comments

Comments
 (0)