]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
kprobes/arm: fix cache flush address for instruction stub
authorNicolas Pitre <nico@cam.org>
Wed, 23 Apr 2008 22:44:15 +0000 (18:44 -0400)
committerNicolas Pitre <nico@cam.org>
Mon, 28 Apr 2008 19:54:37 +0000 (15:54 -0400)
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 <nico@marvell.com>
Acked-by: Lennert Buytenhek <buytenh@marvell.com>
arch/arm/kernel/kprobes.c

index 13e371aad8792686df6fee77d0642fa3030f8a69..5593dd207216bd0d2d1d8319eb8ab06e2bc13714 100644 (file)
@@ -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 */