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

[PATCH] xenfilt: Move list pointer to next entry when pdo is missing



The pointer to the list of fdo entries is never advanced
when the pdo is missing, causing a BSOD. When a device
is missing, advance the list pointer to the next entry.

Signed-off-by: Richard Turner <turnerr@xxxxxxxxxxxx>
---
 src/xenfilt/fdo.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/xenfilt/fdo.c b/src/xenfilt/fdo.c
index b8cf424..6a45b0f 100644
--- a/src/xenfilt/fdo.c
+++ b/src/xenfilt/fdo.c
@@ -1107,7 +1107,7 @@ FdoQueryDeviceRelations(
                 if (PdoGetDevicePnpState(Pdo) == Deleted)
                     PdoDestroy(Pdo);
 
-                continue;
+                goto next;
             }
 
             if (PdoGetDevicePnpState(Pdo) == Present)
@@ -1116,6 +1116,7 @@ FdoQueryDeviceRelations(
             ObReferenceObject(PdoGetPhysicalDeviceObject(Pdo));
             Relations->Objects[Relations->Count++] = 
PdoGetPhysicalDeviceObject(Pdo);
 
+next:
             ListEntry = Next;
         }
 
-- 
2.31.1




 


Rackspace

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