* [PATCH] uprobes: add missing get_uprobe() in __find_uprobe()
@ 2021-02-09 15:07 Sven Schnelle
2021-02-09 15:43 ` Peter Zijlstra
0 siblings, 1 reply; 2+ messages in thread
From: Sven Schnelle @ 2021-02-09 15:07 UTC (permalink / raw)
To: Peter Zijlstra; +Cc: linux-kernel, linux-next, Sven Schnelle
commit c6bc9bd06dff49fa4c("rbtree, uprobes: Use rbtree helpers") from
next-20210208 accidentally removed the refcount increase. Add it again.
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
---
kernel/events/uprobes.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kernel/events/uprobes.c b/kernel/events/uprobes.c
index 7e15b2efdd87..6addc9780319 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;
}
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] uprobes: add missing get_uprobe() in __find_uprobe()
2021-02-09 15:07 [PATCH] uprobes: add missing get_uprobe() in __find_uprobe() Sven Schnelle
@ 2021-02-09 15:43 ` Peter Zijlstra
0 siblings, 0 replies; 2+ messages in thread
From: Peter Zijlstra @ 2021-02-09 15:43 UTC (permalink / raw)
To: Sven Schnelle; +Cc: linux-kernel, linux-next
On Tue, Feb 09, 2021 at 04:07:11PM +0100, Sven Schnelle wrote:
> commit c6bc9bd06dff49fa4c("rbtree, uprobes: Use rbtree helpers") from
> next-20210208 accidentally removed the refcount increase. Add it again.
>
Thanks, and sorry about that!
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-02-09 15:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-09 15:07 [PATCH] uprobes: add missing get_uprobe() in __find_uprobe() Sven Schnelle
2021-02-09 15:43 ` Peter Zijlstra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).