[libbus/pnp] Set Linked member for each node on bus removal
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Wed, 5 Jan 2011 21:30:24 +0000 (16:30 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Wed, 5 Jan 2011 21:30:24 +0000 (16:30 -0500)
src/winvblock/libbus/pnp.c

index 61dc554..d08acf8 100644 (file)
@@ -116,6 +116,7 @@ static NTSTATUS STDCALL WvlBusPnpRemoveDev(IN WVL_SP_BUS_T bus, IN PIRP irp) {
 
         DBG("Removing PDO from bus...\n");
         RemoveEntryList(&node->BusPrivate_.Link);
+        node->Linked = FALSE;
         ObDereferenceObject(node->BusPrivate_.Pdo);
         bus->BusPrivate_.NodeCount--;
       }