lkml.org 
[lkml]   [2021]   [Dec]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] ptrace: remove redundant setting of PT_SEIZED in flags
PT_SEIZED is set twice in the flags variable in ptrace_attach(), so the
second one can be removed as redundant.

Signed-off-by: Nikitas Angelinas <nikitas.angelinas@gmail.com>
---
kernel/ptrace.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/kernel/ptrace.c b/kernel/ptrace.c
index f8589bf..eea2650 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);
--
2.10.0
\
 
 \ /
  Last update: 2021-12-03 06:20    [W:0.024 / U:0.672 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site