Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 40af7a3d authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov Committed by Samuel Pascua
Browse files

radix-tree: fix contiguous iterator



This patch fixes bug in macro radix_tree_for_each_contig().

If radix_tree_next_slot() sees NULL in next slot it returns NULL, but following
radix_tree_next_chunk() switches iterating into next chunk. As result iterating
becomes non-contiguous and breaks vfs "splice" and all its users.

Signed-off-by: default avatarKonstantin Khlebnikov <khlebnikov@openvz.org>
Reported-and-bisected-by: default avatarHans de Bruin <jmdebruin@xmsnet.nl>
Reported-and-bisected-by: default avatarOndrej Zary <linux@rainbow-software.org>
Reported-bisected-and-tested-by: default avatarToralf Förster <toralf.foerster@gmx.de>
Link: https://lkml.org/lkml/2012/6/5/64


Cc: stable <stable@vger.kernel.org> # 3.4.x
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 7f060962
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment