Trivial patch - looks like this was opencoded rather than using the helper

Use set_stop_code() wherever possible.

Signed-off-by: Ananth N Mavinakayanahalli <ana...@in.ibm.com>
---
 kernel/ptrace.c |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Index: ptrace-13oct/kernel/ptrace.c
===================================================================
--- ptrace-13oct.orig/kernel/ptrace.c
+++ ptrace-13oct/kernel/ptrace.c
@@ -331,8 +331,7 @@ static u32 ptrace_report_signal(u32 acti
                        context->siginfo = NULL;
 
                if (resume != UTRACE_RESUME) {
-                       context->stop_code = (PTRACE_EVENT_SIGTRAP << 8) | 
SIGTRAP;
-
+                       set_stop_code(context, PTRACE_EVENT_SIGTRAP);
                        return UTRACE_STOP | UTRACE_SIGNAL_IGN;
                }
 

Reply via email to