]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
tracing: x86, mmiotrace: fix range test
authorStuart Bennett <stuart@freedesktop.org>
Tue, 28 Apr 2009 19:17:48 +0000 (20:17 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 8 May 2009 22:45:12 +0000 (15:45 -0700)
commit 33015c85995716d03f6293346cf05a1908b0fb9a upstream.

Matching on (addr == (p->addr + p->len)) causes problems when mappings
are adjacent.

[ Impact: fix mmiotrace confusion on adjacent iomaps ]

Signed-off-by: Stuart Bennett <stuart@freedesktop.org>
Acked-by: Pekka Paalanen <pq@iki.fi>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <1240946271-7083-2-git-send-email-stuart@freedesktop.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/mm/kmmio.c

index 6a518dd08a36511661df2842815781c94a680fbd..4a685714dbbe6554b16889ebc237fa6126df0653 100644 (file)
@@ -87,7 +87,7 @@ static struct kmmio_probe *get_kmmio_probe(unsigned long addr)
 {
        struct kmmio_probe *p;
        list_for_each_entry_rcu(p, &kmmio_probes, list) {
-               if (addr >= p->addr && addr <= (p->addr + p->len))
+               if (addr >= p->addr && addr < (p->addr + p->len))
                        return p;
        }
        return NULL;