Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 565762f3 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds
Browse files

[PATCH] Don't give bad kprobes example aka ") < 0))" typo

parent 64aaa4f8
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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;