From: Owen Smith Date: Fri, 19 Mar 2021 14:16:25 +0000 (+0000) Subject: Avoid ASSERT in SystemTeardown X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=a927fa9d66e30e7d332056b283d0b4f21c4bf8fd;p=pvdrivers%2Fwin%2Fxenbus.git Avoid ASSERT in SystemTeardown Signed-off-by: Owen Smith --- diff --git a/src/xen/system.c b/src/xen/system.c index ffa41a7..f85efc4 100644 --- a/src/xen/system.c +++ b/src/xen/system.c @@ -1334,7 +1334,10 @@ fail4: fail3: Error("fail3\n"); + Context->RegisterVcpuInfo = FALSE; + __SystemFree(Context->Processor); + Context->Processor = NULL; fail2: Error("fail2\n"); @@ -1444,7 +1447,10 @@ SystemTeardown( Context->MaximumPhysicalAddress.QuadPart = 0; __SystemFree(Context->Processor); + Context->Processor = NULL; + Context->ProcessorCount = 0; + Context->RegisterVcpuInfo = FALSE; (VOID) InterlockedDecrement(&Context->References);