]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Fix ASSERTion failure
authorPaul Durrant <paul.durrant@citrix.com>
Wed, 2 Aug 2017 14:06:42 +0000 (15:06 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 2 Aug 2017 14:06:42 +0000 (15:06 +0100)
Commit 6aef63e0 "Add optional log level settings" introduced an ASSERTion
failure during unload of XENBUS, because the ConsoleLogLevel field of the
driver structure was not being zeroed.

This patch fixes the problem.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/xenbus/driver.c

index 060fc33c5efb8d31f9f10a83162ef00ba6f21d4c..50c7c5e8799c6fa0976be15abc2e075b94af2b14 100644 (file)
@@ -597,6 +597,8 @@ DriverUnload(
     RtlZeroMemory(&Driver.List, sizeof (LIST_ENTRY));
     RtlZeroMemory(&Driver.Mutex, sizeof (MUTEX));
 
+    __DriverSetConsoleLogLevel(0);
+
     ParametersKey = __DriverGetParametersKey();
 
     RegistryCloseKey(ParametersKey);