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 <matthew.r.wilcox@intel.com> Reported-by: Konstantin Khlebnikov <koct9i@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:

committed by
Linus Torvalds

parent
7165092fe5
commit
2d6f45b802
@@ -13,6 +13,7 @@
|
||||
|
||||
#define BUG_ON(expr) assert(!(expr))
|
||||
#define __init
|
||||
#define __must_check
|
||||
#define panic(expr)
|
||||
#define printk printf
|
||||
#define __force
|
||||
|
Reference in New Issue
Block a user