]> 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>
Tue, 13 Dec 2022 21:03:41 +0000 (16:03 -0500)
commit9831d4aa56025a235010ab8ea3626c7ba36f25e0
treef84ab0fcc9c12d5a734068ca6719dee25b987b43
parentb15513cf9e8f7853112b36921177acc16560e3b6
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