aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnanth N Mavinakayanahalli <ananth@in.ibm.com>2013-03-22 11:19:46 -0400
committerOleg Nesterov <oleg@redhat.com>2013-04-04 07:57:04 -0400
commit3c9eb54f71fed86b761a6da4ad3eedc9566ceb8d (patch)
tree40420dbdcecb456050560ae83367a6281909a90a
parentab07e807be533d6317ea0971900bdf547962effd (diff)
uprobes/powerpc: Remove additional trap instruction check
prepare_uprobe() already checks if the underlying unstruction (on file) is a trap variant. We don't need to check this again. Signed-off-by: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com> Signed-off-by: Oleg Nesterov <oleg@redhat.com>
-rw-r--r--arch/powerpc/kernel/uprobes.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/uprobes.c b/arch/powerpc/kernel/uprobes.c
index cb7f63da140c..2ecdbe304f46 100644
--- a/arch/powerpc/kernel/uprobes.c
+++ b/arch/powerpc/kernel/uprobes.c
@@ -53,12 +53,6 @@ int arch_uprobe_analyze_insn(struct arch_uprobe *auprobe,
53 if (addr & 0x03) 53 if (addr & 0x03)
54 return -EINVAL; 54 return -EINVAL;
55 55
56 /*
57 * We currently don't support a uprobe on an already
58 * existing breakpoint instruction underneath
59 */
60 if (is_trap(auprobe->ainsn))
61 return -ENOTSUPP;
62 return 0; 56 return 0;
63} 57}
64 58