Commit:     cb9577958d85896303561d9cc8544885deb272be
Parent:     516a9491151d5f75911647dd44812f25ff24282d
Author:     Kyle McMartin <[EMAIL PROTECTED]>
AuthorDate: Wed May 30 02:24:28 2007 -0400
Committer:  Kyle McMartin <[EMAIL PROTECTED]>
CommitDate: Wed May 30 02:24:28 2007 -0400

    [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 <[EMAIL PROTECTED]>
 arch/parisc/kernel/unwind.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/arch/parisc/kernel/unwind.c b/arch/parisc/kernel/unwind.c
index 89c0370..e70f57e 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 
                /* 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);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to