Commit 33015c85 authored by Stuart Bennett's avatar Stuart Bennett Committed by Ingo Molnar

tracing: x86, mmiotrace: fix range test

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

[ Impact: fix mmiotrace confusion on adjacent iomaps ]
Signed-off-by: default avatarStuart Bennett <stuart@freedesktop.org>
Acked-by: default avatarPekka Paalanen <pq@iki.fi>
Cc: Steven Rostedt <rostedt@goodmis.org>
LKML-Reference: <1240946271-7083-2-git-send-email-stuart@freedesktop.org>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 7267fa68
...@@ -87,7 +87,7 @@ static struct kmmio_probe *get_kmmio_probe(unsigned long addr) ...@@ -87,7 +87,7 @@ static struct kmmio_probe *get_kmmio_probe(unsigned long addr)
{ {
struct kmmio_probe *p; struct kmmio_probe *p;
list_for_each_entry_rcu(p, &kmmio_probes, list) { 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 p;
} }
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment