From: Owen Smith Date: Thu, 5 Jun 2014 14:21:23 +0000 (+0100) Subject: Check for right flag in granter X-Git-Tag: 8.1.0-rc1~53^2 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=99c45802eff06f7ad0a73d7c7ce3e7da0a4ee902;p=pvdrivers%2Fwin%2Fxenvbd.git Check for right flag in granter Signed-off-by: Owen Smith --- diff --git a/src/xenvbd/granter.c b/src/xenvbd/granter.c index c5d39b0..aa8e7a0 100644 --- a/src/xenvbd/granter.c +++ b/src/xenvbd/granter.c @@ -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);