]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix freeing of nodes in rcu mode
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Thu, 24 Nov 2022 15:51:37 +0000 (10:51 -0500)
committerLiam R. Howlett <Liam.Howlett@oracle.com>
Tue, 13 Dec 2022 21:03:41 +0000 (16:03 -0500)
commita9ea145f9104dbf1b0b4db91e055beee9db3af68
tree29b429a963294653a5cc80596b233c5f99923f96
parentf9eacfb30435ba7f177427e03d15faefa0f62ca9
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 R. Howlett <Liam.Howlett@oracle.com>
lib/maple_tree.c