Skip to contentSkip to conversation

ptrace: fix an unreachable statement

PATCH New Américo Wang 1 participant 1 message Mar 13, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ptrace: fix an unreachable statement

commit c2724775ce57c98b8af9694857b941dc61056516 put a statement after return, which makes that statement unreachable.

Move that statement before return.

Cc Markus Metzger <[email protected]>
Cc Ingo Molnar <[email protected]>
Cc Roland McGrath <[email protected]>

---

arch/x86/kernel/ptrace.c +1 -2
index 06ca07f..f7d38d6 100644
@@ -690,9 +690,8 @@ static int ptrace_bts_config(struct task_struct *child,
 		if (!cfg.signal)
 			return -EINVAL;
 
-		return -EOPNOTSUPP;
-
 		child->thread.bts_ovfl_signal = cfg.signal;
+		return -EOPNOTSUPP;
 	}
 
 	if ((cfg.flags & PTRACE_BTS_O_ALLOC) &&