diff options
author | Mike Frysinger <vapier@gentoo.org> | 2009-06-15 07:52:48 -0400 |
---|---|---|
committer | Sam Ravnborg <sam@ravnborg.org> | 2009-06-20 13:33:23 +0200 |
commit | ac6ca5c86c63dd95acc6a34dff8d33c23b703a37 (patch) | |
tree | 8e1913709840edd5e6aaaf9cd182eeeb5100b15c /scripts | |
parent | b767b9059fa75a353c9ad6e320ae080fbe15a951 (diff) | |
download | linux-stable-ac6ca5c86c63dd95acc6a34dff8d33c23b703a37.tar.gz linux-stable-ac6ca5c86c63dd95acc6a34dff8d33c23b703a37.tar.bz2 linux-stable-ac6ca5c86c63dd95acc6a34dff8d33c23b703a37.zip |
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>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kallsyms.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index 3cb57895c9ea..64343cc084b4 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c @@ -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) |