]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix freeing of nodes in rcu mode
authorLiam Howlett <Liam.Howlett@oracle.com>
Thu, 24 Nov 2022 15:51:37 +0000 (10:51 -0500)
committerLiam Howlett <Liam.Howlett@oracle.com>
Thu, 24 Nov 2022 21:07:24 +0000 (16:07 -0500)
commit622b83284f913f15858bdc848f6db5c6260ed41d
tree22de663cd171b393cd5d43f402339063cdda1fe0
parentef26a882853669eabbf471ce6ab82522efe526f3
maple_tree: Fix freeing of nodes in rcu mode

The walk to destroy the nodes was not always setting the node type and
would result in a destroy method potentially using the values as nodes.
Avoid this by setting the correct node types.

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