arm64: kprobes: Remove unneeded RODATA check
authorMasami Hiramatsu <mhiramat@kernel.org>
Tue, 12 Feb 2019 15:43:51 +0000 (00:43 +0900)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 19 Mar 2019 12:43:09 +0000 (12:43 +0000)
commitb5586163de1ce90317cd4037f69b14105be9f656
tree6da613aaa8218efaafd775fb358c99b77cc271cf
parenta872fc8bf0304fd56347e94468f07d7e82c679ea
arm64: kprobes: Remove unneeded RODATA check

Remove unneeded RODATA check from arch_prepare_kprobe().

Since check_kprobe_address_safe() already ensured that
the probe address is in kernel text, we don't need to
check whether the address in RODATA or not. That must
be always false.

Acked-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/probes/kprobes.c