From: Nicolas Pitre Date: Wed, 23 Apr 2008 22:44:15 +0000 (-0400) Subject: kprobes/arm: fix cache flush address for instruction stub X-Git-Tag: v2.6.26-rc1~351^2~1^3~7 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=8f79ff0cb5330a92032c30ff586745d3016b34ca;p=karo-tx-linux.git kprobes/arm: fix cache flush address for instruction stub It is more useful to flush the cache with the actual buffer address rather than the address containing a pointer to the buffer. Signed-off-by: Nicolas Pitre Acked-by: Lennert Buytenhek --- diff --git a/arch/arm/kernel/kprobes.c b/arch/arm/kernel/kprobes.c index 13e371aad879..5593dd207216 100644 --- a/arch/arm/kernel/kprobes.c +++ b/arch/arm/kernel/kprobes.c @@ -66,7 +66,7 @@ int __kprobes arch_prepare_kprobe(struct kprobe *p) return -ENOMEM; for (is = 0; is < MAX_INSN_SIZE; ++is) p->ainsn.insn[is] = tmp_insn[is]; - flush_insns(&p->ainsn.insn, MAX_INSN_SIZE); + flush_insns(p->ainsn.insn, MAX_INSN_SIZE); break; case INSN_GOOD_NO_SLOT: /* instruction doesn't need insn slot */