[libbus/pnp] Increment reference count on dev. relations
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Mon, 3 Jan 2011 12:58:27 +0000 (07:58 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Mon, 3 Jan 2011 12:58:27 +0000 (07:58 -0500)
src/winvblock/libbus/pnp.c

index 3a761d9..61dc554 100644 (file)
@@ -190,6 +190,7 @@ static NTSTATUS STDCALL WvlBusPnpQueryDevRelations(
           );
 
         dev_relations->Objects[i] = node->BusPrivate_.Pdo;
+        ObReferenceObject(node->BusPrivate_.Pdo);
         i++;
       }
     irp->IoStatus.Information = (ULONG_PTR) dev_relations;