From: Liam R. Howlett Date: Mon, 3 Apr 2023 15:54:21 +0000 (-0400) Subject: maple_tree: mas_start() reset depth on dead node X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8f1c7ab20a0a1ec5cf0aa73a388dcf783d139819;p=users%2Fjedix%2Flinux-maple.git maple_tree: mas_start() reset depth on dead node When a dead node is detected, the depth has already been set to 1 so reset it to 0. Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 35c6e12ca9482..1542274dc2b7f 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -1397,9 +1397,9 @@ static inline struct maple_enode *mas_start(struct ma_state *mas) mas->min = 0; mas->max = ULONG_MAX; - mas->depth = 0; retry: + mas->depth = 0; root = mas_root(mas); /* Tree with nodes */ if (likely(xa_is_node(root))) {