]> 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 R. Howlett <Liam.Howlett@oracle.com>
Wed, 4 Jan 2023 20:55:45 +0000 (15:55 -0500)
commit37a65158026ecb821963ea17f854f4ddc773ea91
treebc23d4be382183f1fa338c6c85cfbeb8d643e00f
parent0d6ead6d985507fafac61abaa3c5ef20a76f1add
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.  This is necessary for the
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