diff options
author | Nicolas Pitre <nicolas.pitre@linaro.org> | 2011-02-21 04:37:20 +0100 |
---|---|---|
committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2011-02-21 19:29:29 +0000 |
commit | 5a5af730536fbf15fc354980cba2a0400afa6b76 (patch) | |
tree | 80e84fc65496e03bcdf0f5c6ce2d3ae2db54fabc /arch | |
parent | 58e9c47fa0dd76693b2c85c010c7430a4de77c6d (diff) | |
download | kernel_samsung_espresso10-5a5af730536fbf15fc354980cba2a0400afa6b76.zip kernel_samsung_espresso10-5a5af730536fbf15fc354980cba2a0400afa6b76.tar.gz kernel_samsung_espresso10-5a5af730536fbf15fc354980cba2a0400afa6b76.tar.bz2 |
ARM: 6745/1: kprobes insn decoding fix
Marcin Slusarz says:
> In arch/arm/kernel/kprobes-decode.c there's a function
> arm_kprobe_decode_insn which does:
>
> } else if ((insn & 0x0e000000) == 0x0c400000) {
> ...
>
> This is always false, so code below is dead.
> I found this bug by coccinelle (http://coccinelle.lip6.fr/).
Reported-by: Marcin Slusarz <marcin.slusarz@gmail.com>
Signed-off-by: Nicolas Pitre <nicolas.pitre@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/kernel/kprobes-decode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/kernel/kprobes-decode.c b/arch/arm/kernel/kprobes-decode.c index 2c1f005..8f6ed43 100644 --- a/arch/arm/kernel/kprobes-decode.c +++ b/arch/arm/kernel/kprobes-decode.c @@ -1437,7 +1437,7 @@ arm_kprobe_decode_insn(kprobe_opcode_t insn, struct arch_specific_insn *asi) return space_cccc_1100_010x(insn, asi); - } else if ((insn & 0x0e000000) == 0x0c400000) { + } else if ((insn & 0x0e000000) == 0x0c000000) { return space_cccc_110x(insn, asi); |