Skip to content

Commit

Permalink
kallsyms: fix inverted valid symbol checking
Browse files Browse the repository at this point in the history
The previous commit (17b1f0d) introduced a slightly broken consolidation
of the memory text range checking.

Signed-off-by: Mike Frysinger <[email protected]>
Signed-off-by: Sam Ravnborg <[email protected]>
  • Loading branch information
vapier authored and sravnborg committed Jun 20, 2009
1 parent b767b90 commit ac6ca5c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ static int symbol_valid_tr(struct sym_entry *s)
for (i = 0; i < ARRAY_SIZE(text_ranges); ++i) {
tr = &text_ranges[i];

if (s->addr >= tr->start && s->addr < tr->end)
return 0;
if (s->addr >= tr->start && s->addr <= tr->end)
return 1;
}

return 1;
return 0;
}

static int symbol_valid(struct sym_entry *s)
Expand Down

0 comments on commit ac6ca5c

Please sign in to comment.