aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kallsyms.c6
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)
167 for (i = 0; i < ARRAY_SIZE(text_ranges); ++i) { 167 for (i = 0; i < ARRAY_SIZE(text_ranges); ++i) {
168 tr = &text_ranges[i]; 168 tr = &text_ranges[i];
169 169
170 if (s->addr >= tr->start && s->addr < tr->end) 170 if (s->addr >= tr->start && s->addr <= tr->end)
171 return 0; 171 return 1;
172 } 172 }
173 173
174 return 1; 174 return 0;
175} 175}
176 176
177static int symbol_valid(struct sym_entry *s) 177static int symbol_valid(struct sym_entry *s)