diff options
author | Matthew Wilcox <willy@linux.intel.com> | 2016-05-21 02:02:44 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-05-21 02:58:30 +0200 |
commit | 8a14f4d8328cc8615f8a5487c4173f36a8314796 (patch) | |
tree | df71c04e61341c3d21acc8e2786af46759aad703 /tools/testing/radix-tree/main.c | |
parent | radix-tree test suite: add multi-order tag test (diff) | |
download | linux-8a14f4d8328cc8615f8a5487c4173f36a8314796.tar.xz linux-8a14f4d8328cc8615f8a5487c4173f36a8314796.zip |
radix-tree: fix radix_tree_create for sibling entries
If the radix tree user attempted to insert a colliding entry with an
existing multiorder entry, then radix_tree_create() could encounter a
sibling entry when walking down the tree to look for a slot. Use
radix_tree_descend() to fix the problem, and add a test-case to make
sure the problem doesn't come back in future.
Signed-off-by: Matthew Wilcox <willy@linux.intel.com>
Reviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>
Cc: Konstantin Khlebnikov <koct9i@gmail.com>
Cc: Kirill Shutemov <kirill.shutemov@linux.intel.com>
Cc: Jan Kara <jack@suse.com>
Cc: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions