]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: Set offset out of range on mas_is_ptr in _mas_walk()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 6 Oct 2020 19:23:10 +0000 (15:23 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:30:33 +0000 (12:30 -0500)
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
lib/maple_tree.c

index 6b726bcc3a059adf624e71d4a185d11e27cbc20e..6ccb1f085d15573d1171c23d36fa8759d8388e51 100644 (file)
@@ -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;
        }