From: Masami Hiramatsu Date: Tue, 4 Mar 2008 22:29:44 +0000 (-0800) Subject: kprobes: fix a null pointer bug in register_kretprobe() X-Git-Tag: v2.6.25-rc4~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2a5cd6938879b5bcfef0a73c28fea84c49519c2;p=pandora-kernel.git kprobes: fix a null pointer bug in register_kretprobe() Fix a bug in regiseter_kretprobe() which does not check rp->kp.symbol_name == NULL before calling kprobe_lookup_name. For maintainability, this introduces kprobe_addr helper function which resolves addr field. It is used by register_kprobe and register_kretprobe. Signed-off-by: Masami Hiramatsu Cc: Ananth N Mavinakayanahalli Cc: Jim Keniston Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed