aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/radix-tree/main.c
diff options
context:
space:
mode:
authorKonstantin Khlebnikov <[email protected]>2016-03-17 21:22:08 +0000
committerLinus Torvalds <[email protected]>2016-03-17 22:09:34 +0000
commit2d6f45b802af7a15a0e455bcfad4009aa5e7b66b (patch)
tree168ed52e0dd19c10b2178015f66fe2e877e44f19 /tools/testing/radix-tree/main.c
parentradix-tree,shmem: introduce radix_tree_iter_next() (diff)
downloadkernel-2d6f45b802af7a15a0e455bcfad4009aa5e7b66b.tar.gz
kernel-2d6f45b802af7a15a0e455bcfad4009aa5e7b66b.zip
radix-tree tests: add regression3 test
After calling radix_tree_iter_retry(), 'slot' will be set to NULL. This can cause radix_tree_next_slot() to dereference the NULL pointer. Add Konstantin Khlebnikov's test to the regression framework. Signed-off-by: Matthew Wilcox <[email protected]> Reported-by: Konstantin Khlebnikov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/testing/radix-tree/main.c')
-rw-r--r--tools/testing/radix-tree/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/radix-tree/main.c b/tools/testing/radix-tree/main.c
index 6b8a412c6a11..0e83cad27a9f 100644
--- a/tools/testing/radix-tree/main.c
+++ b/tools/testing/radix-tree/main.c
@@ -261,6 +261,7 @@ int main(void)
regression1_test();
regression2_test();
+ regression3_test();
single_thread_tests();
sleep(1);