]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix mas_dead_node for a trivial tree
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Sun, 13 Oct 2019 03:21:36 +0000 (23:21 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Fri, 30 Oct 2020 18:56:26 +0000 (14:56 -0400)
commit58e87d397110e9de6f098175f5897d45a79afff8
tree903394f1726c68cdb6e0d9058dbfe7d67b46cde9
parent11d26e7e29f8f8dbcd0e62fd0bfefa92cea823e5
maple_tree: Fix mas_dead_node for a trivial tree

For a tree with no entries, or an entry only at 0, mas_dead_node()
can be called with a mas->node of NULL.  This node is, by definition,
not dead.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
lib/maple_tree.c