]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commitdiff
Reboot request keys should be volatile
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 8 May 2017 16:10:48 +0000 (17:10 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 31 May 2017 13:29:35 +0000 (14:29 +0100)
When a driver makes a reboot request it should use a volatile registry key.
The monitor service will explicitly remove the key prior to reboot but,
if the reboot is initiated in some other way and the key is non-volatile,
the monitor service will then needlessly prompt for a second reboot.

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

index 43a9c7b895816ff45d7d87582f51e8593aed0b14..8bc097afc5a758d2d2b0ba1d2f3c479d5b9c4445 100644 (file)
@@ -206,7 +206,7 @@ __DriverRequestReboot(
 
     status = RegistryCreateSubKey(RequestKey,
                                   __MODULE__,
-                                  REG_OPTION_NON_VOLATILE,
+                                  REG_OPTION_VOLATILE,
                                   &SubKey);
     if (!NT_SUCCESS(status))
         goto fail3;