]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc0ad856acaf03268ec4ce05eabda41cc05f30149
tree410712944738de9608e3c71476739fb7a008a667
parent1d398c5523787fb98cfa0ae517541c76fbb06962
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: 125840f4182d ("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