win-pvdrivers

changeset 628:2b5a0d115bf9

read path after checking veto list
author James Harper <james.harper@bendigoit.com.au>
date Mon Aug 17 23:50:50 2009 +1000 (2009-08-17)
parents 14086fb4104b
children 4c16d7438efd
files xenpci/xenpci_fdo.c
line diff
     1.1 --- a/xenpci/xenpci_fdo.c	Mon Aug 17 23:48:47 2009 +1000
     1.2 +++ b/xenpci/xenpci_fdo.c	Mon Aug 17 23:50:50 2009 +1000
     1.3 @@ -899,7 +899,7 @@ XenPci_EvtChildListScanForChildren(WDFCH
     1.4    {
     1.5      for (i = 0; devices[i]; i++)
     1.6      {
     1.7 -      RtlStringCbPrintfA(path, ARRAY_SIZE(path), "device/%s", devices[i]);
     1.8 +      /* make sure the key is not in the veto list */
     1.9        for (entry = xpdd->veto_list.Flink; entry != &xpdd->veto_list; entry = ((PLIST_ENTRY)entry)->Flink)
    1.10        {
    1.11          if (!strcmp(devices[i], (PCHAR)entry + sizeof(LIST_ENTRY)))
    1.12 @@ -911,6 +911,7 @@ XenPci_EvtChildListScanForChildren(WDFCH
    1.13          continue;
    1.14        }
    1.15      
    1.16 +      RtlStringCbPrintfA(path, ARRAY_SIZE(path), "device/%s", devices[i]);
    1.17        msg = XenBus_List(xpdd, XBT_NIL, path, &instances);
    1.18        if (!msg)
    1.19        {