git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
scripts/kallsyms.c: fix potential segfault
[pandora-kernel.git]
/
scripts
/
kallsyms.c
diff --git
a/scripts/kallsyms.c
b/scripts/kallsyms.c
index
60dd3eb
..
487ac6f
100644
(file)
--- a/
scripts/kallsyms.c
+++ b/
scripts/kallsyms.c
@@
-500,6
+500,8
@@
static void optimize_result(void)
/* find the token with the breates profit value */
best = find_best_token();
+ if (token_profit[best] == 0)
+ break;
/* place it in the "best" table */
best_table_len[i] = 2;