]> xenbits.xensource.com Git - pvdrivers/win/xenbus.git/commitdiff
Reboot request keys should be volatile
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 8 May 2017 15:58:43 +0000 (16:58 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Wed, 31 May 2017 12:39:03 +0000 (13:39 +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/xenbus/driver.c

index e9cb6f4d7cd16bff205f340fdc6b5eea7a98143b..bbbda6cbcd1dbc09231914e722d549f9d317dacf 100644 (file)
@@ -161,7 +161,7 @@ __DriverRequestReboot(
 
     status = RegistryCreateSubKey(RequestKey,
                                   __MODULE__,
-                                  REG_OPTION_NON_VOLATILE,
+                                  REG_OPTION_VOLATILE,
                                   &SubKey);
     if (!NT_SUCCESS(status))
         goto fail3;