|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [PATCH] Avoid ASSERT in SystemTeardown
Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>
---
src/xen/system.c | 6 ++++++
1 file changed, 6 insertions(+)
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);
--
2.30.2.windows.1
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |