From: Paul Durrant Date: Tue, 27 Jan 2015 14:02:18 +0000 (+0000) Subject: EVTCHN Bind method should check that the channel is active X-Git-Tag: 8.1.0-rc1~76 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=cfde5a8163930ccdce030f02e684640406702e1e;p=pvdrivers%2Fwin%2Fxenbus.git EVTCHN Bind method should check that the channel is active Any method which performs ABI operations should check whether the channel is active. Signed-off-by: Paul Durrant --- diff --git a/src/xenbus/evtchn.c b/src/xenbus/evtchn.c index 16060aa..acbb84c 100644 --- a/src/xenbus/evtchn.c +++ b/src/xenbus/evtchn.c @@ -513,6 +513,9 @@ EvtchnBind( KeAcquireSpinLock(&Channel->Lock, &Irql); + if (!Channel->Active) + goto done; + if (Channel->Cpu == Cpu) goto done;