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

Commit a0d60aef authored by Anton Arapov's avatar Anton Arapov Committed by Oleg Nesterov
Browse files

uretprobes: Remove -ENOSYS as return probes implemented



Enclose return probes implementation.

Signed-off-by: default avatarAnton Arapov <anton@redhat.com>
Acked-by: default avatarSrikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: default avatarOleg Nesterov <oleg@redhat.com>
parent ded49c55
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -851,10 +851,6 @@ int uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *
	if (!uc->handler && !uc->ret_handler)
		return -EINVAL;

	/* TODO: Implement return probes */
	if (uc->ret_handler)
		return -ENOSYS;

	/* Racy, just to catch the obvious mistakes */
	if (offset > i_size_read(inode))
		return -EINVAL;