diff options
author | Masami Hiramatsu <[email protected]> | 2008-03-04 14:29:44 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2008-03-04 16:35:19 -0800 |
commit | b2a5cd6938879b5bcfef0a73c28fea84c49519c2 (patch) | |
tree | e2039a9f7a4766dbea703c6ed32db881863efc1d /lib/debugobjects.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 <[email protected]>
Cc: Ananth N Mavinakayanahalli <[email protected]>
Cc: Jim Keniston <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions