radix_tree_iter_resume: Fix out of bounds error
authorMatthew Wilcox <mawilcox@microsoft.com>
Mon, 30 Jan 2017 21:22:30 +0000 (16:22 -0500)
committerMatthew Wilcox <mawilcox@microsoft.com>
Tue, 14 Feb 2017 02:44:05 +0000 (21:44 -0500)
commitf7137f79c57f228321dde2ab4586015504feaaac
tree2e8fb8bf6e705b3b002f9f2d41b286b76571caff
parentd58275bc96ae933b1b3888af80920dd6b020c505
radix_tree_iter_resume: Fix out of bounds error

The address sanitizer occasionally finds an out of bounds error while
running the test-suite.  It turned out to be a read of the pointer
immediately next to the tree root, but this out of bounds error could
have occurred elsewhere.  This happens because radix_tree_iter_resume()
dereferences 'slot' before checking whether we've come to the end of
the chunk.  We can just delete this line; the value was never used.

Signed-off-by: Matthew Wilcox <mawilcox@microsoft.com>
lib/radix-tree.c