From: Liam R. Howlett Date: Fri, 3 Oct 2025 20:56:13 +0000 (-0400) Subject: maple_tree: Correct right ma_wr_state end pivot in X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=80328fe8b7e93852afc2045d14a02390c3ee37a4;p=users%2Fjedix%2Flinux-maple.git maple_tree: Correct right ma_wr_state end pivot in mas_wr_spanning_store() The end_piv will be needed in the next patch set and has not been set correctly in this code path. Correct the oversight before using it. Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 0078272e6e51..5479e09b4d39 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3832,6 +3832,7 @@ static void mas_wr_spanning_store(struct ma_wr_state *wr_mas) r_mas.index = r_mas.last; mas_wr_walk_index(&r_wr_mas); r_mas.last = r_mas.index = mas->last; + r_wr_mas.end_piv = r_wr_mas.r_max; /* Set up left side. */ mas_wr_walk_index(wr_mas);