summaryrefslogtreecommitdiffstats
path: root/kernel/events
diff options
context:
space:
mode:
authorSven Schnelle <svens@linux.ibm.com>2021-02-09 16:07:11 +0100
committerIngo Molnar <mingo@kernel.org>2021-02-17 14:12:42 +0100
commitb0d6d4789677d128b1933af023083054f0973574 (patch)
tree6e2c495bfb0d9d216cdecfeb73983a93506d0ac0 /kernel/events
parentsmp: Process pending softirqs in flush_smp_call_function_from_idle() (diff)
downloadlinux-b0d6d4789677d128b1933af023083054f0973574.tar.xz
linux-b0d6d4789677d128b1933af023083054f0973574.zip
uprobes: (Re)add missing get_uprobe() in __find_uprobe()
commit c6bc9bd06dff ("rbtree, uprobes: Use rbtree helpers") accidentally removed the refcount increase. Add it again. Fixes: c6bc9bd06dff ("rbtree, uprobes: Use rbtree helpers") Signed-off-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lkml.kernel.org/r/20210209150711.36778-1-svens@linux.ibm.com
Diffstat (limited to 'kernel/events')
-rw-r--r--kernel/events/uprobes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index fd5160dee2b4..3ea7f8f92f1d 100644
--- a/kernel/events/uprobes.c
+++ b/kernel/events/uprobes.c
@@ -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;
}