[MOUNTMGR] Remove cancel routine before completing pending IRP

This commit is contained in:
Pierre Schweitzer
2019-10-19 16:29:37 +02:00
parent a01b272578
commit 7b650d2c3e

View File

@@ -328,6 +328,7 @@ MountMgrNotify(IN PDEVICE_EXTENSION DeviceExtension)
{
NextEntry = RemoveHeadList(&(DeviceExtension->IrpListHead));
Irp = CONTAINING_RECORD(NextEntry, IRP, Tail.Overlay.ListEntry);
IoSetCancelRoutine(Irp, NULL);
InsertTailList(&CopyList, &(Irp->Tail.Overlay.ListEntry));
}
IoReleaseCancelSpinLock(OldIrql);