MIPS: fix uretprobe implementation
[cascardo/linux.git] / arch / mips / kernel / uprobes.c
index 1149b30..cd8a689 100644 (file)
@@ -257,7 +257,7 @@ unsigned long arch_uretprobe_hijack_return_addr(
        ra = regs->regs[31];
 
        /* Replace the return address with the trampoline address */
-       regs->regs[31] = ra;
+       regs->regs[31] = trampoline_vaddr;
 
        return ra;
 }