]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - arch/x86/kernel/entry_64.S
function-graph/x86: Replace unbalanced ret with jmp
[net-next-2.6.git] / arch / x86 / kernel / entry_64.S
index b5c061f8f358489fee828e48b836d18c3bd6da79..bd5bbddddf91eab956106bff572e03a0ba86b9f9 100644 (file)
@@ -155,11 +155,11 @@ GLOBAL(return_to_handler)
 
        call ftrace_return_to_handler
 
-       movq %rax, 16(%rsp)
+       movq %rax, %rdi
        movq 8(%rsp), %rdx
        movq (%rsp), %rax
-       addq $16, %rsp
-       retq
+       addq $24, %rsp
+       jmp *%rdi
 #endif