]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Detect dead nodes in ma_data_end()
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 24 Nov 2022 15:49:27 +0000 (10:49 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Mon, 28 Nov 2022 20:18:33 +0000 (15:18 -0500)
commit2a2ce469b75086d1c80ccd23d213fb539b3728c4
tree467e8e392f36b0e49021aae894b35c0af8d1e48c
parent10baabda8ba5a01ca81e095a1097f633838ab351
maple_tree: Detect dead nodes in ma_data_end()

If there is a dead node, then don't use any of the data and just return
0.  The caller will need to validate the node is not dead before using
the returned data anyways.

Signed-off-by: Liam R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c