summaryrefslogtreecommitdiff
path: root/general/ioctl/kmdf/sys
diff options
context:
space:
mode:
authormatwilli <[email protected]>2021-04-20 10:59:31 -0700
committerGitHub <[email protected]>2021-04-20 10:59:31 -0700
commit80c104ad0cef2a4fb55aaee7d494f30af5fb44b4 (patch)
treedfb8ab99407da02a71c420a726a7f7439b27e6a8 /general/ioctl/kmdf/sys
parent5ab839435fd1c6d5f60171312cc0b078544b060d (diff)
Buses samples should use ExAllocatePool2 (#611)
* Updating samples to utilize ExAllocatePool2 which zero-initializes pool allocations
Diffstat (limited to 'general/ioctl/kmdf/sys')
-rw-r--r--general/ioctl/kmdf/sys/nonpnp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/general/ioctl/kmdf/sys/nonpnp.c b/general/ioctl/kmdf/sys/nonpnp.c
index 519ae838..a36c98c1 100644
--- a/general/ioctl/kmdf/sys/nonpnp.c
+++ b/general/ioctl/kmdf/sys/nonpnp.c
@@ -459,10 +459,10 @@ Return Value:
//
length = directory.Length + fileName->Length;
- absFileName.Buffer = ExAllocatePoolWithTag(PagedPool, length, POOL_TAG);
+ absFileName.Buffer = ExAllocatePool2(POOL_FLAG_PAGED, length, POOL_TAG);
if(absFileName.Buffer == NULL) {
status = STATUS_INSUFFICIENT_RESOURCES;
- TraceEvents(TRACE_LEVEL_ERROR, DBG_INIT, "ExAllocatePoolWithTag failed");
+ TraceEvents(TRACE_LEVEL_ERROR, DBG_INIT, "ExAllocatePool2 failed");
goto End;
}
absFileName.Length = 0;