]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - include/linux/rhashtable.h
rhashtable: fix rht_for_each_entry_safe() endless loop
authorPatrick McHardy <kaber@trash.net>
Wed, 21 Jan 2015 11:12:13 +0000 (11:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Jan 2015 08:08:23 +0000 (00:08 -0800)
commit607954b084d4ad5e6a2e0f795de7803d9c6ae37f
tree410712944738de9608e3c71476739fb7a008a667
parent22f6bba77fc4aa80ffea31f4c1009993f98aa020
rhashtable: fix rht_for_each_entry_safe() endless loop

"next" is not updated, causing an endless loop for buckets with more than
one element.

Fixes: 88d6ed15acff ("rhashtable: Convert bucket iterators to take table and index")
Signed-off-by: Patrick McHardy <kaber@trash.net>
Acked-by: Thomas Graf <tgraf@suug.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/rhashtable.h