[NTOS:IO] Fix list enumeration in IopShutdownBaseFileSystems

This commit is contained in:
Timo Kreuzer 2019-12-24 18:31:59 +01:00
parent 68490c1613
commit 53f8cbad97

View file

@ -371,6 +371,9 @@ IopShutdownBaseFileSystems(IN PLIST_ENTRY ListHead)
DEVICE_OBJECT,
Queue.ListEntry);
/* Go to the next entry */
ListEntry = ListEntry->Flink;
/* Get the attached device */
DeviceObject = IoGetAttachedDevice(DeviceObject);
@ -400,9 +403,6 @@ IopShutdownBaseFileSystems(IN PLIST_ENTRY ListHead)
IopDecrementDeviceObjectRef(DeviceObject, FALSE);
ObDereferenceObject(DeviceObject);
/* Go to the next entry */
ListEntry = ListEntry->Flink;
}
}