kallsyms: fix inverted valid symbol checking

The previous commit (17b1f0de) introduced a slightly broken consolidation
of the memory text range checking.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
This commit is contained in:
Mike Frysinger 2009-06-15 07:52:48 -04:00 committed by Sam Ravnborg
parent b767b9059f
commit ac6ca5c86c
1 changed files with 3 additions and 3 deletions

View File

@ -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)