summaryrefslogtreecommitdiff
path: root/arch/mips/include/asm/uprobes.h
diff options
context:
space:
mode:
authorMarcin Nowakowski <marcin.nowakowski@imgtec.com>2016-09-22 16:38:32 +0300
committerRalf Baechle <ralf@linux-mips.org>2016-09-29 19:59:49 +0300
commitddabfa5c2e33f1b495f3e0176de7057850915c0b (patch)
tree822ba923abc3cc07492ddc4d4465e74ae500fff9 /arch/mips/include/asm/uprobes.h
parentdb06068a4fd44a57b642b369d2a295b8448f6b65 (diff)
downloadlinux-ddabfa5c2e33f1b495f3e0176de7057850915c0b.tar.xz
MIPS: uprobes: remove incorrect set_orig_insn
Generic kernel code implements a weak version of set_orig_insn that moves cached 'insn' from arch_uprobe to the original code location when the trap is removed. MIPS variant used arch_uprobe->orig_inst which was never initialised properly, so this code only inserted a nop instead of the original instruction. With that change orig_inst can also be safely removed. Signed-off-by: Marcin Nowakowski <marcin.nowakowski@imgtec.com> Fixes: 40e084a506eb ('MIPS: Add uprobes support.') Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/14299/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include/asm/uprobes.h')
-rw-r--r--arch/mips/include/asm/uprobes.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/mips/include/asm/uprobes.h b/arch/mips/include/asm/uprobes.h
index 34c325c674c4..70a4a2f173ff 100644
--- a/arch/mips/include/asm/uprobes.h
+++ b/arch/mips/include/asm/uprobes.h
@@ -36,7 +36,6 @@ struct arch_uprobe {
unsigned long resume_epc;
u32 insn[2];
u32 ixol[2];
- union mips_instruction orig_inst[MAX_UINSN_BYTES / 4];
};
struct arch_uprobe_task {