]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Presence or absence of a PCI device determines the filter state...
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 2 Oct 2019 07:57:21 +0000 (08:57 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 2 Oct 2019 07:57:21 +0000 (08:57 +0100)
...so no need to call DriverSetFilterState() for any other type.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenfilt/fdo.c

index b8cf4246e12c9a154093d1f092d60bff1eade3bf..9ba3619b8836f48627cbb27aade381a5f9fa81dd 100644 (file)
@@ -387,7 +387,8 @@ __FdoSetEnumerated(
 {
     Fdo->Enumerated = TRUE;
 
-    DriverSetFilterState();
+    if (Fdo->Type == XENFILT_EMULATED_OBJECT_TYPE_PCI)
+        DriverSetFilterState();
 }
 
 BOOLEAN