diff options
author | Masami Hiramatsu <mhiramat@redhat.com> | 2008-03-04 14:29:44 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2008-03-04 16:35:19 -0800 |
commit | b2a5cd6938879b5bcfef0a73c28fea84c49519c2 (patch) | |
tree | e2039a9f7a4766dbea703c6ed32db881863efc1d /drivers/usb/atm/xusbatm.c | |
parent | 1913130553aa231644eb4e955b1a2c533fe33d17 (diff) |
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 <mhiramat@redhat.com>
Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com>
Cc: Jim Keniston <jkenisto@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/usb/atm/xusbatm.c')
0 files changed, 0 insertions, 0 deletions