Skip to content

Commit

Permalink
uprobes: (Re)add missing get_uprobe() in __find_uprobe()
Browse files Browse the repository at this point in the history
commit c6bc9bd ("rbtree, uprobes: Use rbtree helpers")
accidentally removed the refcount increase. Add it again.

Fixes: c6bc9bd ("rbtree, uprobes: Use rbtree helpers")
Signed-off-by: Sven Schnelle <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
  • Loading branch information
svens-s390 authored and Ingo Molnar committed Feb 17, 2021
1 parent f9d3459 commit b0d6d47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/events/uprobes.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ static struct uprobe *__find_uprobe(struct inode *inode, loff_t offset)
struct rb_node *node = rb_find(&key, &uprobes_tree, __uprobe_cmp_key);

if (node)
return __node_2_uprobe(node);
return get_uprobe(__node_2_uprobe(node));

return NULL;
}
Expand Down

0 comments on commit b0d6d47

Please sign in to comment.