From c1971a4cafbedb7f3acce0a4c172d2b09387937f Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Fri, 15 Mar 2019 16:26:39 -0400 Subject: [PATCH] maple_tree: Use encoded node for getting rcu slot in ma_encoded_parent Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 0ca8195d3f8f..bcf222cf487b 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -600,7 +600,7 @@ static inline void ma_encoded_parent(struct ma_state *mas) mas->node = mt_mk_node(gparent, mt_parent_enum(mas, parent)); ma_set_slot(mas, slot); mas_update_limits(mas, slot, mt_parent_enum(mas, parent)); - mas->node = ma_get_rcu_slot(gparent, slot); + mas->node = ma_get_rcu_slot(mas->node, slot); return; } static inline struct maple_node *ma_next_alloc(struct ma_state *ms) -- 2.50.1