From: Liam R. Howlett Date: Tue, 6 Oct 2020 19:23:10 +0000 (-0400) Subject: maple_tree: Set offset out of range on mas_is_ptr in _mas_walk() X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3971f3e3e30677555dded8d5f93eedae6a374e88;p=users%2Fjedix%2Flinux-maple.git maple_tree: Set offset out of range on mas_is_ptr in _mas_walk() Signed-off-by: Liam R. Howlett --- diff --git a/lib/maple_tree.c b/lib/maple_tree.c index 6b726bcc3a059..6ccb1f085d155 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; }