Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 334764
b: refs/heads/master
c: a5f658b
h: refs/heads/master
v: v3
  • Loading branch information
Oleg Nesterov committed Oct 7, 2012
1 parent f27b5e3 commit 2e66118
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: b64b9c937a533f0bfbfc9f6ac93d3c3e2f97ab02
refs/heads/master: a5f658b71bc622b731961ea3addcf146ed3c599f
4 changes: 3 additions & 1 deletion trunk/kernel/events/uprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,9 @@ int uprobe_register(struct inode *inode, loff_t offset, struct uprobe_consumer *
mutex_lock(uprobes_hash(inode));
uprobe = alloc_uprobe(inode, offset);

if (uprobe && !consumer_add(uprobe, uc)) {
if (!uprobe) {
ret = -ENOMEM;
} else if (!consumer_add(uprobe, uc)) {
ret = __uprobe_register(uprobe);
if (ret) {
uprobe->consumers = NULL;
Expand Down

0 comments on commit 2e66118

Please sign in to comment.