]> err.no Git - linux-2.6/commitdiff
[PARISC] fix null ptr deref in unwind.c
authorKyle McMartin <kyle@parisc-linux.org>
Wed, 30 May 2007 06:24:28 +0000 (02:24 -0400)
committerKyle McMartin <kyle@minerva.i.cabal.ca>
Wed, 30 May 2007 06:24:28 +0000 (02:24 -0400)
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>
arch/parisc/kernel/unwind.c

index 89c03707eccc82dcf7dcb9d2b332a275b7b74f4b..e70f57e27643a0743254cfbf793c4b575b6a415c 100644 (file)
@@ -216,8 +216,10 @@ static void unwind_frame_regs(struct unwind_frame_info *info)
                /* Handle some frequent special cases.... */
                {
                        char symname[KSYM_NAME_LEN+1];
+                       char *modname;
 
-                       kallsyms_lookup(info->ip, NULL, NULL, NULL, symname);
+                       kallsyms_lookup(info->ip, NULL, NULL, &modname,
+                               symname);
 
                        dbg("info->ip = 0x%lx, name = %s\n", info->ip, symname);