]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commit
Fix list walking in hash_table.c 8.1.0-rc2
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 10 Sep 2015 09:05:01 +0000 (10:05 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Thu, 10 Sep 2015 11:42:37 +0000 (12:42 +0100)
commit3f43282aa04d0f0f9cbc3dd8759c71896b4ae88d
tree75b5fed1ed7b6d199acea02142892f9da87ef814
parentd85bcc4a1f41e4e7a9ec3f7a40294ecce6ef06ce
Fix list walking in hash_table.c

Neither HashTableLookup() nor HashTableRemove() update the iterator in their
attempted list walks, leading to an endless spin. This patch changes the
while loops to for loops and fixes the problem.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reported-by: Rafal Wojdyla <omeg@invisiblethingslab.com>
src/xenbus/hash_table.c