From a047f7e316dd8ce49313ec213cc15238fde88fac Mon Sep 17 00:00:00 2001 From: "Liam R. Howlett" Date: Tue, 6 Oct 2020 15:23:10 -0400 Subject: [PATCH] maple_tree: Set offset out of range on mas_is_ptr in _mas_walk() Signed-off-by: Liam R. Howlett --- lib/maple_tree.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 6b726bcc3a05..6ccb1f085d15 100644 --- a/lib/maple_tree.c +++ b/lib/maple_tree.c @@ -3718,6 +3718,7 @@ static inline bool _mas_walk(struct ma_state *mas, unsigned long *range_min, if (mas_is_ptr(mas)) { if (!mas->index) return true; + mas_set_offset(mas, MAPLE_NODE_SLOTS); return false; } -- 2.50.1