From: Steven Rostedt Date: Mon, 12 May 2008 19:20:56 +0000 (+0200) Subject: ftrace: fix the fault label in updating code X-Git-Tag: v2.6.27-rc1~1102^2^2~1^2~62 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=a56be3fe2f65f9f776e727bfd382e35db75911d6;p=linux-2.6-omap-h63xx.git ftrace: fix the fault label in updating code The fault label to jump to on fault of updating the code was misplaced preventing the fault from being recorded. Signed-off-by: Steven Rostedt Signed-off-by: Ingo Molnar Signed-off-by: Thomas Gleixner --- diff --git a/arch/x86/kernel/ftrace.c b/arch/x86/kernel/ftrace.c index 9f44623e007..498608c015f 100644 --- a/arch/x86/kernel/ftrace.c +++ b/arch/x86/kernel/ftrace.c @@ -93,8 +93,8 @@ ftrace_modify_code(unsigned long ip, unsigned char *old_code, " movb %b4, 4(%2)\n" "2:\n" ".section .fixup, \"ax\"\n" - " movl $1, %0\n" - "3: jmp 2b\n" + "3: movl $1, %0\n" + " jmp 2b\n" ".previous\n" _ASM_EXTABLE(1b, 3b) : "=r"(faulted), "=a"(replaced)