Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=7a74fc4925067c2102175baef73f9b07ab519b71
Commit:     7a74fc4925067c2102175baef73f9b07ab519b71
Parent:     b927b3e2c9bc39b7eeeaca91e4cd6c3ed59f165a
Author:     Kyle McMartin <[EMAIL PROTECTED]>
AuthorDate: Wed May 30 02:43:16 2007 -0400
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Wed May 30 10:51:38 2007 -0700

    fix possible null ptr deref in kallsyms_lookup
    
    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 <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
---
 kernel/kallsyms.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c
index f1bda23..fed5441 100644
--- 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;
        }
 
-
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  http://vger.kernel.org/majordomo-info.html

Reply via email to