Skip to content

Commit

Permalink
[PATCH] Don't give bad kprobes example aka ") < 0))" typo
Browse files Browse the repository at this point in the history
Signed-off-by: Alexey Dobriyan <adobriyan@openvz.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Nov 16, 2006
1 parent 64aaa4f commit 565762f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Documentation/kprobes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -442,9 +442,10 @@ static int __init kprobe_init(void)
kp.fault_handler = handler_fault;
kp.symbol_name = "do_fork";

if ((ret = register_kprobe(&kp) < 0)) {
ret = register_kprobe(&kp);
if (ret < 0) {
printk("register_kprobe failed, returned %d\n", ret);
return -1;
return ret;
}
printk("kprobe registered\n");
return 0;
Expand Down

0 comments on commit 565762f

Please sign in to comment.