Skip to content

Commit

Permalink
ftrace: fix the fault label in updating code
Browse files Browse the repository at this point in the history
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 <srostedt@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Steven Rostedt authored and Thomas Gleixner committed May 23, 2008
1 parent 30afdcb commit a56be3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/x86/kernel/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a56be3f

Please sign in to comment.