uprobes/x86: Kill the "ia32_compat" check in handle_riprel_insn(), remove "mm" arg
authorOleg Nesterov <oleg@redhat.com>
Mon, 31 Mar 2014 16:09:36 +0000 (18:09 +0200)
committerOleg Nesterov <oleg@redhat.com>
Thu, 17 Apr 2014 19:58:17 +0000 (21:58 +0200)
commit59078d4b96bb548f97d9fb429b929a289e4884d9
treee0a2e2d9fe1480a9be083fe07945c0143dc371ff
parentddb69f276c4af8bb47ad4f24a72f72ddf58c228a
uprobes/x86: Kill the "ia32_compat" check in handle_riprel_insn(), remove "mm" arg

Kill the "mm->context.ia32_compat" check in handle_riprel_insn(), if
it is true insn_rip_relative() must return false. validate_insn_bits()
passed "ia32_compat" as !x86_64 to insn_init(), and insn_rip_relative()
checks insn->x86_64.

Also, remove the no longer needed "struct mm_struct *mm" argument and
the unnecessary "return" at the end.

Signed-off-by: Oleg Nesterov <oleg@redhat.com>
Reviewed-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Reviewed-by: Jim Keniston <jkenisto@us.ibm.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
arch/x86/kernel/uprobes.c