]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Fix ASSERTion failure in FdoDisconnectInterrupt()
authorPaul Durrant <pdurrant@amazon.com>
Fri, 29 Jan 2021 18:41:21 +0000 (18:41 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Mon, 8 Feb 2021 15:23:54 +0000 (15:23 +0000)
Currently the ASSERT(IsZeroMemory(...)) will fail because nothing zeroes
the interrupt count added in commit 162545540cb9 ("Make sure the interrupt
handler for each vCPU is run..."). This patch sets it to zero just after
calling IoDisconnectInterruptEx() (which unhooks FdoInterruptCallback(), where
the count is incremented).

Signed-off-by: Paul Durrant <pdurrant@amazon.com>
src/xenbus/fdo.c

index 21de8678c9595e47d28547d94a4449f41313a317..5bbb70a9bf066fb695de7fc99e5483ea18a2dc35 100644 (file)
@@ -2348,6 +2348,8 @@ FdoDisconnectInterrupt(
 
     IoDisconnectInterruptEx(&Disconnect);
 
+    Interrupt->Count = 0;
+
     Interrupt->Line = 0;
     Interrupt->InterruptObject = NULL;
     Interrupt->InterruptMode = 0;