Skip to content

Commit

Permalink
tracing: x86, mmiotrace: fix range test
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stuart Bennett authored and Ingo Molnar committed Apr 29, 2009
1 parent 7267fa6 commit 33015c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/x86/mm/kmmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 33015c8

Please sign in to comment.