From 8c45336028efc0b815556b26a6848d5f00553f6c Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Tue, 15 Sep 2020 12:22:12 -0400 Subject: [PATCH] maple_tree: Don't initially set pivot in data_end. Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index cbb813acdb69..150b2baff5c1 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -1026,8 +1026,7 @@ static inline unsigned char mas_data_end(const struct ma_state *mas) { unsigned char offset = 0; enum maple_type type = mte_node_type(mas->node); - unsigned long *pivots = ma_pivots(mas_mn(mas), type); - unsigned long piv = mas->min; + unsigned long piv, *pivots = ma_pivots(mas_mn(mas), type); while (offset < mt_slots[type]) { piv = _mas_safe_pivot(mas, pivots, offset, type); -- 2.50.1