]> 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>
Tue, 5 Jan 2021 17:28:13 +0000 (12:28 -0500)
commit9d2dbc6efa80451b3c138718a4c3d928ebbc418a
tree630cb4f92f5371976380bd679bd7b9ea833af6ea
parentfc11fea9f6dc1f307cc9f5a009a933f4596d349e
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