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

[PATCH] Avoid ASSERT in SystemTeardown


  • To: <win-pv-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Owen Smith <owen.smith@xxxxxxxxxx>
  • Date: Fri, 19 Mar 2021 14:16:25 +0000
  • Authentication-results: esa3.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none
  • Cc: Owen Smith <owen.smith@xxxxxxxxxx>
  • Delivery-date: Fri, 19 Mar 2021 14:16:48 +0000
  • Ironport-hdrordr: A9a23:OBiH5qhP2aszDbc1baxTiM6+x3BQXj4ji2hD6mlwRA09T+Wzva mV8sgz/xnylToXRTUcgtiGIqaNWjfx8pRy7IkXM96ZLW3bkUGvK5xv6pan/i34F0TFh4hg/I ppbqQWMr3NJHdgi8KS2mWFOvIB5PXCz6yyn+fZyB5WPGRXQoVt9R1wBAreMmAefngkObMDGJ CR5tVKqlObEBx9BKmGL0IIQvTZoJnznI/mCCR2YCIP0hWEjj+j9dfBciSw4xF2aVxy6IZn1W DElgDjj5/T0c2G9g==
  • Ironport-sdr: sDyVEgoL3H18gsI0w7Vt067FaVdlwxJzf0OLiQvgv5OwDd0q0xlwxJd8tHh7RiGLqUo3o9APnA SF03UPt482BQdNQKoomRuNShV2MXmseYrrIfGIlo0Yks3WDlaNAOeW5jexsWKHjwrzKWSA/XRr ylUpgKAROJFTy/iFxgklpPZaF0uBY7BXZL/5at08z3A/YTo0Na8DHpfkcdm0Ai1l2eBgb7Paoy 2gDpPQzxB7rXyKIO6n9AG6qUqlmW4LoxWnio3y4dRfMfxj73Zx5DPTll35p1TDaPC/GiRFtVKl auY=
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

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




 


Rackspace

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