[disk/pnp] Don't call IoDeleteDevice()
authorShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sun, 9 Jan 2011 08:55:16 +0000 (03:55 -0500)
committerShao Miller <Shao.Miller@yrdsb.edu.on.ca>
Sun, 9 Jan 2011 08:55:16 +0000 (03:55 -0500)
Now that RAM, file-backed, and AoE disks all store their
data in the device object's extension, we only need to
free that data from one place: The particular disk's
WV_S_DEV_T::Ops.Free() implementation.

src/winvblock/disk/pnp.c

index 56bd98a..20ae92d 100644 (file)
@@ -327,7 +327,6 @@ static NTSTATUS STDCALL disk_pnp__simple_(
           dev->State = WvDevStateNotStarted;
           if (!dev->BusNode.Linked) {
               WvDevClose(dev);
-              IoDeleteDevice(dev->Self);
               WvDevFree(dev);
               status = STATUS_NO_SUCH_DEVICE;
             } else {