diff options
| author | Liam Howlett <[email protected]> | 2023-02-27 17:36:02 +0000 |
|---|---|---|
| committer | Andrew Morton <[email protected]> | 2023-04-06 01:06:21 +0000 |
| commit | 2e5b4921f8efc9e845f4f04741797d16f36847eb (patch) | |
| tree | aebbf3f173eb299cc760f5950d9a0fb3ba654b1f /tools/testing/radix-tree/maple.c | |
| parent | maple_tree: detect dead nodes in mas_start() (diff) | |
| download | kernel-2e5b4921f8efc9e845f4f04741797d16f36847eb.tar.gz kernel-2e5b4921f8efc9e845f4f04741797d16f36847eb.zip | |
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.
Link: https://lkml.kernel.org/r/[email protected]
Fixes: 54a611b60590 ("Maple Tree: add new data structure")
Signed-off-by: Liam Howlett <[email protected]>
Signed-off-by: Suren Baghdasaryan <[email protected]>
Cc: <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/maple.c')
0 files changed, 0 insertions, 0 deletions
