From 7b650d2c3ef90cb7ea3fa0029ab2b75835f5fa5c Mon Sep 17 00:00:00 2001 From: Pierre Schweitzer Date: Sat, 19 Oct 2019 16:29:37 +0200 Subject: [PATCH] [MOUNTMGR] Remove cancel routine before completing pending IRP --- drivers/filters/mountmgr/notify.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/filters/mountmgr/notify.c b/drivers/filters/mountmgr/notify.c index 97bc9470376..9a1e7885ac8 100644 --- a/drivers/filters/mountmgr/notify.c +++ b/drivers/filters/mountmgr/notify.c @@ -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);