]> 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>
Mon, 28 Nov 2022 20:18:33 +0000 (15:18 -0500)
commit22d3c7060815202c9f6ea83b764dc79d01b5d661
treed9d8c66dcacb6fbdc6886341a0193b064aa45add
parenta64917310ce11fdeec00e1c9fe7c2f1b80ff6034
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