Skip to content

Commit

Permalink
uretprobes: Remove -ENOSYS as return probes implemented
Browse files Browse the repository at this point in the history
Enclose return probes implementation.

Signed-off-by: Anton Arapov <anton@redhat.com>
Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Signed-off-by: Oleg Nesterov <oleg@redhat.com>
  • Loading branch information
Anton Arapov authored and Oleg Nesterov committed Apr 13, 2013
1 parent ded49c5 commit a0d60ae
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions kernel/events/uprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a0d60ae

Please sign in to comment.