]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: Set slot in mas_prev_slot to get the pivot
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 25 Feb 2020 02:35:05 +0000 (21:35 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 19:00:35 +0000 (15:00 -0400)
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
lib/maple_tree.c

index 314b16fa5e390f0f5a8b10b869bb180fe039e2a2..a58caac4defa4e3449b1d5076cb9bf787894195e 100644 (file)
@@ -2814,7 +2814,7 @@ no_entry:
 static inline void mas_prev_node(struct ma_state *mas, unsigned long limit)
 {
        int level;
-       int slot;
+       int slot = mas_get_slot(mas);
        unsigned long start_piv;
 
        start_piv = mas_get_safe_pivot(mas, slot);