[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH xenbus 2/8] Fix ASSERTion failure in FdoDisconnectInterrupt()

From: Paul Durrant <pdurrant@xxxxxxxxxx>

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@xxxxxxxxxx>
 src/xenbus/fdo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/xenbus/fdo.c b/src/xenbus/fdo.c
index 21de8678c959..5bbb70a9bf06 100644
--- a/src/xenbus/fdo.c
+++ b/src/xenbus/fdo.c
@@ -2348,6 +2348,8 @@ FdoDisconnectInterrupt(
+    Interrupt->Count = 0;
     Interrupt->Line = 0;
     Interrupt->InterruptObject = NULL;
     Interrupt->InterruptMode = 0;



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.