Discussion:
[win-pv-devel] [PATCH xencons] Fix ASSERTion failure in PDO destruction
Paul Durrant
2018-10-30 15:42:37 UTC
Permalink
The Context field is not being NULLed out, so the zero memory check fails.
This patch adds the necessary NULL assignments.

Signed-off-by: Paul Durrant <***@citrix.com>
---
src/xencons/pdo.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/src/xencons/pdo.c b/src/xencons/pdo.c
index 3b483a5..fde3d3e 100644
--- a/src/xencons/pdo.c
+++ b/src/xencons/pdo.c
@@ -2002,6 +2002,8 @@ fail6:
else
FrontendDestroy(Pdo->Context);

+ Pdo->Context = NULL;
+
Pdo->IsDefault = FALSE;

fail5:
@@ -2077,6 +2079,8 @@ PdoDestroy(
else
FrontendDestroy(Pdo->Context);

+ Pdo->Context = NULL;
+
Pdo->IsDefault = FALSE;

RtlFreeUnicodeString(&Pdo->Dx->Link);
--
2.5.3
Loading...