]> xenbits.xensource.com Git - people/aperard/linux-chromebook.git/commitdiff
CHROMIUM: arch/arm: Remove duplicated code in syscall_trace
authorMichael Spang <spang@chromium.org>
Fri, 23 Nov 2012 22:52:42 +0000 (17:52 -0500)
committerGerrit <chrome-bot@google.com>
Wed, 28 Nov 2012 21:38:51 +0000 (13:38 -0800)
This is breaking the ptrace syscall on ARM. Looks like a mismerge in
5ea62181 ("CHROMIUM: arch/arm: move secure_computing into trace").

TEST=ran "strace true"
BUG=chromium-os:36102

Change-Id: Ic377577216bed3672201ca71604f650c1b8b3f0c
Signed-off-by: Michael Spang <spang@chromium.org>
Reviewed-on: https://gerrit.chromium.org/gerrit/38602
Reviewed-by: Doug Anderson <dianders@chromium.org>
arch/arm/kernel/ptrace.c

index 75902f8fa1a79fb993164bf6eac42422ff28275e..77da665bfcd16879db13df23931ff86078e66406 100644 (file)
@@ -932,13 +932,6 @@ asmlinkage int syscall_trace(int why, struct pt_regs *regs, int scno)
        ip = regs->ARM_ip;
        regs->ARM_ip = why;
 
-       /*
-        * IP is used to denote syscall entry/exit:
-        * IP = 0 -> entry, =1 -> exit
-        */
-       ip = regs->ARM_ip;
-       regs->ARM_ip = why;
-
        /* the 0x80 provides a way for the tracing parent to distinguish
           between a syscall stop and SIGTRAP delivery */
        ptrace_notify(SIGTRAP | ((current->ptrace & PT_TRACESYSGOOD)