summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdonais Romero Gonzalez <[email protected]>2022-07-15 15:12:52 -0700
committerAdonais Romero Gonzalez <[email protected]>2022-07-15 15:12:52 -0700
commit5f773dd71eacded0e0bf0b6ab223beb96de21a11 (patch)
treed09bab4d987575089554924ea1cdcf34f3408d29
parent55f5458e18ebb745abd917b2cca27385b2c02bd3 (diff)
parent3c4de76454f1aed23b58a75a2505f8bd047e02f5 (diff)
Merge branch 'main' into develop
-rw-r--r--pofx/PEP/common/acpinotify.c6
-rw-r--r--pofx/PEP/common/util.c6
-rw-r--r--pofx/PEP/common/work.c12
3 files changed, 12 insertions, 12 deletions
diff --git a/pofx/PEP/common/acpinotify.c b/pofx/PEP/common/acpinotify.c
index ed5fd2b6..c7c1dd38 100644
--- a/pofx/PEP/common/acpinotify.c
+++ b/pofx/PEP/common/acpinotify.c
@@ -190,9 +190,9 @@ Return Value:
RegisterDevice->AcpiDeviceName->Length +
sizeof(WCHAR);
- PepInternalDevice = ExAllocatePoolWithTag(NonPagedPoolNx,
- SizeNeeded,
- PEP_POOL_TAG);
+ PepInternalDevice = ExAllocatePool2(POOL_FLAG_NON_PAGED,
+ SizeNeeded,
+ PEP_POOL_TAG);
if (PepInternalDevice == NULL) {
TraceEvents(ERROR,
diff --git a/pofx/PEP/common/util.c b/pofx/PEP/common/util.c
index 12be758d..53d448ed 100644
--- a/pofx/PEP/common/util.c
+++ b/pofx/PEP/common/util.c
@@ -835,9 +835,9 @@ Return Value:
(ULONG)RequiredSizeAugmented,
(ULONG)(*BiosResourcesSize));
- BiosResource = ExAllocatePoolWithTag(NonPagedPoolNx,
- RequiredSize,
- PEP_POOL_TAG);
+ BiosResource = ExAllocatePool2(POOL_FLAG_NON_PAGED,
+ RequiredSize,
+ PEP_POOL_TAG);
Request.InputBuffer = ResourceBuffer;
Request.InputBufferSize = ResourceBufferSize;
diff --git a/pofx/PEP/common/work.c b/pofx/PEP/common/work.c
index 0677afde..1d9d5d46 100644
--- a/pofx/PEP/common/work.c
+++ b/pofx/PEP/common/work.c
@@ -88,9 +88,9 @@ Return Value:
NT_ASSERT(WorkType != PEP_NOTIFICATION_CLASS_NONE);
- WorkRequest = ExAllocatePoolWithTag(NonPagedPoolNx,
- sizeof(PEP_WORK_CONTEXT),
- PEP_POOL_TAG);
+ WorkRequest = ExAllocatePool2(POOL_FLAG_NON_PAGED,
+ sizeof(PEP_WORK_CONTEXT),
+ PEP_POOL_TAG);
if (WorkRequest == NULL) {
Status = STATUS_INSUFFICIENT_RESOURCES;
@@ -107,9 +107,9 @@ Return Value:
NT_ASSERT(WorkContextSize != 0);
- LocalWorkContext = ExAllocatePoolWithTag(NonPagedPoolNx,
- WorkContextSize,
- PEP_POOL_TAG);
+ LocalWorkContext = ExAllocatePool2(POOL_FLAG_NON_PAGED,
+ WorkContextSize,
+ PEP_POOL_TAG);
if (LocalWorkContext == NULL) {
Status = STATUS_INSUFFICIENT_RESOURCES;