]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Protect mas_prev_nentry() from dead nodes
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 24 Nov 2022 15:50:21 +0000 (10:50 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 13 Dec 2022 21:03:41 +0000 (16:03 -0500)
commitf9eacfb30435ba7f177427e03d15faefa0f62ca9
tree8dc7f81bac4d6d5b7f3dc798dd7bc9bc3790862b
parent9831d4aa56025a235010ab8ea3626c7ba36f25e0
maple_tree: Protect mas_prev_nentry() from dead nodes

Don't use the pivot array before checking if the node is dead.  This is
for safe use in rcu mode.

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