From: Liam R. Howlett Date: Tue, 27 May 2025 20:19:02 +0000 (-0400) Subject: ugg, r_parent max check was wrong X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8d985ae909dc0f9b8800f3be7540a1fd59491086;p=users%2Fjedix%2Flinux-maple.git ugg, r_parent max check was wrong Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index a24847a677ef..8d93e64727fe 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;