win-pvdrivers

changeset 1096:05efa89a4ef7

Fix sysrq handling. sysrq is no longer writable from the domu
author James Harper <james.harper@bendigoit.com.au>
date Thu Jan 16 19:50:40 2014 +1100 (2014-01-16)
parents 42381a8db72c
children 2c0d09515dd0
files xenpci/xenpci_fdo.c
line diff
     1.1 --- a/xenpci/xenpci_fdo.c	Mon Jan 13 20:26:53 2014 +1100
     1.2 +++ b/xenpci/xenpci_fdo.c	Thu Jan 16 19:50:40 2014 +1100
     1.3 @@ -157,15 +157,7 @@ XenPci_SysrqHandler(char *path, PVOID co
     1.4  
     1.5    FUNCTION_MSG("SysRq Value = %s\n", value);
     1.6  
     1.7 -  if (value != NULL && strlen(value) != 0) {
     1.8 -    letter = *value;
     1.9 -    res = XenBus_Write(xpdd, XBT_NIL, SYSRQ_PATH, "");
    1.10 -    if (res) {
    1.11 -      FUNCTION_MSG("Error writing sysrq path\n");
    1.12 -      XenPci_FreeMem(res);
    1.13 -      return;
    1.14 -    }
    1.15 -  } else {
    1.16 +  if (!value || !strlen(value)) {
    1.17      letter = 0;
    1.18    }
    1.19