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

Re: [PATCH] Avoid ASSERT in SystemTeardown


  • To: win-pv-devel@xxxxxxxxxxxxxxxxxxxx
  • From: Paul Durrant <xadimgnik@xxxxxxxxx>
  • Date: Fri, 26 Mar 2021 07:52:01 +0000
  • Delivery-date: Fri, 26 Mar 2021 07:52:07 +0000
  • List-id: Developer list for the Windows PV Drivers subproject <win-pv-devel.lists.xenproject.org>

On 19/03/2021 14:16, Owen Smith wrote:
Signed-off-by: Owen Smith <owen.smith@xxxxxxxxxx>

Acked-by: Paul Durrant <paul@xxxxxxx>

---
  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);




 


Rackspace

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