diff options
| author | Yinghan Yang <[email protected]> | 2022-07-15 15:11:14 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-07-15 15:11:14 -0700 |
| commit | 3c4de76454f1aed23b58a75a2505f8bd047e02f5 (patch) | |
| tree | 4f431d141b3a685e86d7adb3aef8103027f5ce18 | |
| parent | d0b7e627fc4aebe6b9c3805a63d0aba4557433ab (diff) | |
[pofx\pep] Pool allocation fix (#759)
| -rw-r--r-- | pofx/PEP/common/acpinotify.c | 6 | ||||
| -rw-r--r-- | pofx/PEP/common/util.c | 6 | ||||
| -rw-r--r-- | pofx/PEP/common/work.c | 12 |
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; |
