projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b927b3e
)
fix possible null ptr deref in kallsyms_lookup
author
Kyle McMartin
<kyle@parisc-linux.org>
Wed, 30 May 2007 06:43:16 +0000
(
02:43
-0400)
committer
Linus Torvalds
<torvalds@woody.linux-foundation.org>
Wed, 30 May 2007 17:51:38 +0000
(10:51 -0700)
ugh, this function gets called by our unwinder. recursive backtrace for
the win... bisection to find this one was "fun."
Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kallsyms.c
patch
|
blob
|
history
diff --git
a/kernel/kallsyms.c
b/kernel/kallsyms.c
index
f1bda23
..
fed5441
100644
(file)
--- a/
kernel/kallsyms.c
+++ b/
kernel/kallsyms.c
@@
-257,7
+257,8
@@
const char *kallsyms_lookup(unsigned long addr,
pos = get_symbol_pos(addr, symbolsize, offset);
/* Grab name */
kallsyms_expand_symbol(get_symbol_offset(pos), namebuf);
- *modname = NULL;
+ if (modname)
+ *modname = NULL;
return namebuf;
}