win-pvdrivers

changeset 625:c9fd1186ecce

verify XenVbd_InitFromConfig() succeeded when resuming from hibernation and raise a bug check if it failed
author Amir Szekely <amir@neocleus.com>
date Sat Aug 08 10:29:34 2009 +0300 (2009-08-08)
parents 0b55299418ce
children 1c466f05ad73
files xenvbd/xenvbd.c
line diff
     1.1 --- a/xenvbd/xenvbd.c	Sun Aug 09 00:30:57 2009 +1000
     1.2 +++ b/xenvbd/xenvbd.c	Sat Aug 08 10:29:34 2009 +0300
     1.3 @@ -1323,7 +1323,8 @@ XenVbd_HwScsiAdapterControl(PVOID Device
     1.4      break;
     1.5    case ScsiRestartAdapter:
     1.6      KdPrint((__DRIVER_NAME "     ScsiRestartAdapter\n"));
     1.7 -    XenVbd_InitFromConfig(xvdd);
     1.8 +    if (XenVbd_InitFromConfig(xvdd) != SP_RETURN_FOUND)
     1.9 +      KeBugCheckEx(DATA_COHERENCY_EXCEPTION, 0, (ULONG_PTR) xvdd, 0, 0);
    1.10      if (!xvdd->inactive)
    1.11        XenVbd_StartRingDetection(xvdd);
    1.12      //if (xvdd->use_other)
    1.13 @@ -1529,4 +1530,4 @@ DriverEntry(PDRIVER_OBJECT DriverObject,
    1.14    FUNCTION_EXIT();
    1.15  
    1.16    return status;
    1.17 -}
    1.18 \ No newline at end of file
    1.19 +}