From 8d985ae909dc0f9b8800f3be7540a1fd59491086 Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Tue, 27 May 2025 16:19:02 -0400 Subject: [PATCH] ugg, r_parent max check was wrong Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index a24847a677ef0..8d93e64727fe2 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -5170,7 +5170,7 @@ static void mas_wr_spanning_store(struct ma_wr_state *wr_mas) other = parent; printk("Looks like there is a left sibling\n"); printk("mas is now %p[%u]\n", mas_mn(mas), mas->offset); - } else if (r_parent.max > ULONG_MAX) { + } else if (r_parent.max < ULONG_MAX) { printk("%d: set src %u\n", __LINE__, 2); src[++max_s] = &other; printk("%d: set src %u\n", __LINE__, max_s); @@ -5180,6 +5180,7 @@ static void mas_wr_spanning_store(struct ma_wr_state *wr_mas) printk("Looks like there is a right cousin\n"); BUG_ON(1); } else { + fflush(stdout); BUG_ON(!parent.min); printk("%d: set src %u\n", __LINE__, s); src[0] = &other; -- 2.50.1