]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
maple_tree: Fix dump debug code when the last slot is null.
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 22 Jan 2019 15:14:38 +0000 (10:14 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Wed, 31 Jul 2019 14:52:36 +0000 (10:52 -0400)
Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
lib/maple_tree.c

index 2f5af8ecfc0ee3400d5174341a7ec3a3786b86cb..5d18fef960ce2a43acbf1edcc5cdb7626059588d 100644 (file)
@@ -1274,6 +1274,8 @@ void mt_dump_range64(void *entry, unsigned long min, unsigned long max,
 
                if (i < (MAPLE_RANGE64_SLOTS - 1))
                        last = node->pivot[i];
+               else if (node->slot[i] == NULL)
+                       break;
                if (last == 0 && i > 0)
                        break;
                if (leaf)