]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitcafd570993020e898641e630ea875ca2e82c70d1
tree6da613aaa8218efaafd775fb358c99b77cc271cf
parent2d7840d2bf31dc760543c7972e542e863b5f2e41
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