]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - scripts/kallsyms.c
Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound-2.6
[karo-tx-linux.git] / scripts / kallsyms.c
index 3cb57895c9ea5629089f90d7bc79575673d30416..86c3896a1e01862b222adeaac4e33bc9b8a01aad 100644 (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)
@@ -585,7 +585,7 @@ static int prefix_underscores_count(const char *str)
 {
        const char *tail = str;
 
-       while (*tail != '_')
+       while (*tail == '_')
                tail++;
 
        return tail - str;