https://git.reactos.org/?p=reactos.git;a=commitdiff;h=d82ccaa2a292c5637e22eb...
commit d82ccaa2a292c5637e22eb86194f28fbe6c67c9d Author: Thomas Faber thomas.faber@reactos.org AuthorDate: Mon Dec 18 00:13:51 2017 +0100 Commit: Thomas Faber thomas.faber@reactos.org CommitDate: Wed Apr 18 16:13:14 2018 +0200
[NTOS:PNP] Use pool tagging for DEVICE_ACTION_DATA. CORE-10456 --- ntoskrnl/io/pnpmgr/pnpmgr.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/ntoskrnl/io/pnpmgr/pnpmgr.c b/ntoskrnl/io/pnpmgr/pnpmgr.c index c8a14e1f34..83ff6774b6 100644 --- a/ntoskrnl/io/pnpmgr/pnpmgr.c +++ b/ntoskrnl/io/pnpmgr/pnpmgr.c @@ -926,7 +926,7 @@ IopDeviceActionWorker( Data->Type);
ObDereferenceObject(Data->DeviceObject); - ExFreePool(Data); + ExFreePoolWithTag(Data, TAG_IO); KeAcquireSpinLock(&IopDeviceActionLock, &OldIrql); } IopDeviceActionInProgress = FALSE; @@ -4892,7 +4892,9 @@ IoInvalidateDeviceRelations( PDEVICE_ACTION_DATA Data; KIRQL OldIrql;
- Data = ExAllocatePool(NonPagedPool, sizeof(DEVICE_ACTION_DATA)); + Data = ExAllocatePoolWithTag(NonPagedPool, + sizeof(DEVICE_ACTION_DATA), + TAG_IO); if (!Data) return;