]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
EVTCHN Bind method should check that the channel is active
authorPaul Durrant <paul.durrant@citrix.com>
Tue, 27 Jan 2015 14:02:18 +0000 (14:02 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Tue, 27 Jan 2015 16:12:52 +0000 (16:12 +0000)
Any method which performs ABI operations should check whether the channel is
active.

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

index 16060aa9c1645e37f5eab9d808897facc5fafa07..acbb84ce986a3b594c813b4bcfc4ced2de86f95e 100644 (file)
@@ -513,6 +513,9 @@ EvtchnBind(
 
     KeAcquireSpinLock(&Channel->Lock, &Irql);
 
+    if (!Channel->Active)
+        goto done;
+
     if (Channel->Cpu == Cpu)
         goto done;