aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKyle McMartin <kyle@parisc-linux.org>2007-05-30 02:24:28 -0400
committerKyle McMartin <kyle@minerva.i.cabal.ca>2007-05-30 02:24:28 -0400
commitcb9577958d85896303561d9cc8544885deb272be (patch)
treea8232600edf17cf4020a121ef4bb7735257e0f0e
parent516a9491151d5f75911647dd44812f25ff24282d (diff)
[PARISC] fix null ptr deref in unwind.c
commit ffb45122766db220d0bf3d01848d575fbbcb6430 removed one too many args. kallsyms_lookup is not safe to call with a NULL *modname. Paper bag over the problem for the time being. Signed-off-by: Kyle McMartin <kyle@parisc-linux.org>
-rw-r--r--arch/parisc/kernel/unwind.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/arch/parisc/kernel/unwind.c b/arch/parisc/kernel/unwind.c
index 89c03707eccc..e70f57e27643 100644
--- a/arch/parisc/kernel/unwind.c
+++ b/arch/parisc/kernel/unwind.c
@@ -216,8 +216,10 @@ static void unwind_frame_regs(struct unwind_frame_info *info)
216 /* Handle some frequent special cases.... */ 216 /* Handle some frequent special cases.... */
217 { 217 {
218 char symname[KSYM_NAME_LEN+1]; 218 char symname[KSYM_NAME_LEN+1];
219 char *modname;
219 220
220 kallsyms_lookup(info->ip, NULL, NULL, NULL, symname); 221 kallsyms_lookup(info->ip, NULL, NULL, &modname,
222 symname);
221 223
222 dbg("info->ip = 0x%lx, name = %s\n", info->ip, symname); 224 dbg("info->ip = 0x%lx, name = %s\n", info->ip, symname);
223 225