[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[win-pv-devel] [PATCH] Function RangeSetPop needs to move Cursor forward



To traverse the RangeSet list, the Cursor needs to move forward,
otherwise it will end with dead loop

Signed-off-by: Lin Liu <lin.liu@xxxxxxxxxx>
---
 src/xenbus/range_set.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xenbus/range_set.c b/src/xenbus/range_set.c
index f52af63..162e3c8 100644
--- a/src/xenbus/range_set.c
+++ b/src/xenbus/range_set.c
@@ -213,6 +213,8 @@ RangeSetPop(
 
         if ((ULONGLONG)(Range->End + 1 - Range->Start) >= Count)
             goto found;
+
+        Cursor = Cursor->Flink;
     }
 
     goto fail3;
-- 
2.17.0


_______________________________________________
win-pv-devel mailing list
win-pv-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/win-pv-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.