]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/kernel/entry_32.S
function-graph/x86: Replace unbalanced ret with jmp
[net-next-2.6.git] / arch / x86 / kernel / entry_32.S
index c097e7d607c61e27c4e6df0701f044f4af067ff7..7d52e9da5e0cc0d1942b6cd9624f83f504491e77 100644 (file)
@@ -1185,17 +1185,14 @@ END(ftrace_graph_caller)
 
 .globl return_to_handler
 return_to_handler:
-       pushl $0
        pushl %eax
-       pushl %ecx
        pushl %edx
        movl %ebp, %eax
        call ftrace_return_to_handler
-       movl %eax, 0xc(%esp)
+       movl %eax, %ecx
        popl %edx
-       popl %ecx
        popl %eax
-       ret
+       jmp *%ecx
 #endif
 
 .section .rodata,"a"