Skip to contentSkip to conversation

kernel:ptrace - Fix typo in comment in function __ptrace_unlink().

PATCH In review Shailendra Verma 3 participants 3 messages May 23, 2015 – May 24, 2015 ptrace support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernel:ptrace - Fix typo in comment in function __ptrace_unlink().

---
 kernel/ptrace.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/ptrace.c +1 -1
index c8e0e05..46249f9 100644
@@ -108,7 +108,7 @@ void __ptrace_unlink(struct task_struct *child)
 
 	/*
 	 * If transition to TASK_STOPPED is pending or in TASK_TRACED, kick
-	 * @child in the butt.  Note that @resume should be used iff @child
+	 * @child in the butt.  Note that @resume should be used if @child
 	 * is in TASK_TRACED; otherwise, we might unduly disrupt
 	 * TASK_KILLABLE sleeps.
 	 */
Signature · 1 line
1.7.9.5
#1 lore raw

kernel/ptrace.c void __ptrace_unlink(struct task_struct *child) · line 111

Quoted 8 lines · Shailendra Verma
kernel/ptrace.c +1 -1
@@ -108,7 +108,7 @@ void __ptrace_unlink(struct task_struct *child)
 
 	/*
 	 * If transition to TASK_STOPPED is pending or in TASK_TRACED, kick
-	 * @child in the butt.  Note that @resume should be used iff @child
+	 * @child in the butt.  Note that @resume should be used if @child

Probably incorrect, as it appears to be using 'iff' in the mathematical sense of 'if and only if'....

maintainer
#2 lore raw
In reply to Shailendra Verma

So this "fix" is wrong.

But you know, even if it was correct... IMO, the fixes like this can only make sense as a "while at it" part of the meaningful change.

Quoted 22 lines · Shailendra Verma
---
 kernel/ptrace.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
kernel/ptrace.c +1 -1
index c8e0e05..46249f9 100644
@@ -108,7 +108,7 @@ void __ptrace_unlink(struct task_struct *child)
 
 	/*
 	 * If transition to TASK_STOPPED is pending or in TASK_TRACED, kick
-	 * @child in the butt.  Note that @resume should be used iff @child
+	 * @child in the butt.  Note that @resume should be used if @child
 	 * is in TASK_TRACED; otherwise, we might unduly disrupt
 	 * TASK_KILLABLE sleeps.
 	 */
Signature · 1 line
1.7.9.5