Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 350073
b: refs/heads/master
c: f0744af
h: refs/heads/master
i:
  350071: 96fd460
v: v3
  • Loading branch information
Oleg Nesterov committed Feb 8, 2013
1 parent 8a2457f commit a525a8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: bbc33d05930f870ea049eae5ed980f8b827d0813
refs/heads/master: f0744af7d0fde190674064c54e2ff60b34ac71fe
7 changes: 1 addition & 6 deletions trunk/kernel/events/uprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -844,9 +844,7 @@ int uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *
struct uprobe *uprobe;
int ret;

if (!inode || !uc || uc->next)
return -EINVAL;

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

Expand Down Expand Up @@ -883,9 +881,6 @@ void uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consume
{
struct uprobe *uprobe;

if (!inode || !uc)
return;

uprobe = find_uprobe(inode, offset);
if (!uprobe)
return;
Expand Down

0 comments on commit a525a8c

Please sign in to comment.