]> xenbits.xensource.com Git - pvdrivers/win/xenvbd.git/commitdiff
Check for right flag in granter
authorOwen Smith <owen.smith@citrix.com>
Thu, 5 Jun 2014 14:21:23 +0000 (15:21 +0100)
committerOwen Smith <owen.smith@citrix.com>
Thu, 5 Jun 2014 14:21:23 +0000 (15:21 +0100)
Signed-off-by: Owen Smith <owen.smith@citrix.com>
src/xenvbd/granter.c

index c5d39b07d304971aea6dc06bbb379cfd2f5efc76..aa8e7a0cb70f58bfdf4c8cfbeff4b9bb4a603eb5 100644 (file)
@@ -268,7 +268,7 @@ GranterGet(
     LONG                        Value;
 
     status = STATUS_DEVICE_NOT_READY;
-    if (Granter->Enabled == FALSE)
+    if (Granter->Connected == FALSE)
         goto fail1;
 
     status = GNTTAB(PermitForeignAccess, 
@@ -303,7 +303,7 @@ GranterPut(
     PXENBUS_GNTTAB_DESCRIPTOR   Descriptor = Handle;
     NTSTATUS                    status;
 
-    if (Granter->Enabled == FALSE)
+    if (Granter->Connected == FALSE)
         return;
 
     status = GNTTAB(RevokeForeignAccess,
@@ -324,7 +324,7 @@ GranterReference(
 {
     PXENBUS_GNTTAB_DESCRIPTOR   Descriptor = Handle;
 
-    if (Granter->Enabled == FALSE)
+    if (Granter->Connected == FALSE)
         return 0;
 
     return GNTTAB(Reference, Granter->GnttabInterface, Descriptor);