]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Avoid ASSERT in SystemTeardown
authorOwen Smith <owen.smith@citrix.com>
Fri, 19 Mar 2021 14:16:25 +0000 (14:16 +0000)
committerPaul Durrant <pdurrant@amazon.com>
Fri, 26 Mar 2021 11:29:03 +0000 (11:29 +0000)
Signed-off-by: Owen Smith <owen.smith@citrix.com>
src/xen/system.c

index ffa41a749282d2d518b07f9d39a4e5f04130ac56..f85efc4fba701cd5164f7f838f3ad78fee82d20f 100644 (file)
@@ -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);