From: Ananth N Mavinakayanahalli <ana...@in.ibm.com> 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(-) --- PU/kernel/ptrace.c~84_REPORT_SIGNAL_USE_HELPER 2009-10-13 13:25:13.000000000 +0200 +++ PU/kernel/ptrace.c 2009-10-13 14:01:43.000000000 +0200 @@ -361,8 +361,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; }