]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Be more cautious about dead nodes
authorLiam Howlett <Liam.Howlett@oracle.com>
Thu, 24 Nov 2022 15:46:45 +0000 (10:46 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Wed, 4 Jan 2023 20:51:06 +0000 (15:51 -0500)
commita3d365719081df6a82b322162e37db2680eebdca
tree519125d34be442b482817614f149e1db871feed6
parent3b25b7a45a54601ad49c957aafbaca2c9e403c9b
maple_tree: Be more cautious about dead nodes

ma_pivots() and ma_data_end() may be called with a dead node.  Ensure to
that the node isn't dead before using the returned values.

This is necessary for RCU mode of the maple tree.

Fixes: 54a611b60590 ("Maple Tree: add new data structure")
Signed-off-by: Liam Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c