mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
perf tools: Fixup off-by-one comparision in maps__find
map->end is the first addr _outside_ the a map, following the convention of vm_area_struct->vm_end. Signed-off-by: Namhyung Kim <[email protected]> Acked-by: Stephane Eranian <[email protected]> Cc: David Ahern <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephane Eranian <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
77faf4d060
commit
4955ea225d
1 changed files with 1 additions and 1 deletions
|
|
@ -752,7 +752,7 @@ struct map *maps__find(struct rb_root *maps, u64 ip)
|
|||
m = rb_entry(parent, struct map, rb_node);
|
||||
if (ip < m->start)
|
||||
p = &(*p)->rb_left;
|
||||
else if (ip > m->end)
|
||||
else if (ip >= m->end)
|
||||
p = &(*p)->rb_right;
|
||||
else
|
||||
return m;
|
||||
|
|
|
|||
Loading…
Reference in a new issue