summaryrefslogtreecommitdiff
path: root/general
diff options
context:
space:
mode:
Diffstat (limited to 'general')
-rw-r--r--general/echo/kmdf/driver/AutoSync/queue.c2
-rw-r--r--general/echo/kmdf/driver/DriverSync/queue.c2
-rw-r--r--general/ioctl/kmdf/sys/nonpnp.c4
-rw-r--r--general/toaster/toastDrv/kmdf/bus/dynamic/buspdo.c4
-rw-r--r--general/toaster/toastDrv/kmdf/func/featured/wmi.c4
5 files changed, 7 insertions, 9 deletions
diff --git a/general/echo/kmdf/driver/AutoSync/queue.c b/general/echo/kmdf/driver/AutoSync/queue.c
index d881c003..7e2e915f 100644
--- a/general/echo/kmdf/driver/AutoSync/queue.c
+++ b/general/echo/kmdf/driver/AutoSync/queue.c
@@ -423,7 +423,7 @@ Return Value:
queueContext->Length = 0L;
}
- queueContext->Buffer = ExAllocatePoolWithTag(NonPagedPoolNx, Length, 'sam1');
+ queueContext->Buffer = ExAllocatePool2(POOL_FLAG_NON_PAGED, Length, 'sam1');
if( queueContext->Buffer == NULL ) {
KdPrint(("EchoEvtIoWrite: Could not allocate %Iu byte buffer\n", Length));
WdfRequestComplete(Request, STATUS_INSUFFICIENT_RESOURCES);
diff --git a/general/echo/kmdf/driver/DriverSync/queue.c b/general/echo/kmdf/driver/DriverSync/queue.c
index 7835b73b..1b34b616 100644
--- a/general/echo/kmdf/driver/DriverSync/queue.c
+++ b/general/echo/kmdf/driver/DriverSync/queue.c
@@ -649,7 +649,7 @@ Return Value:
queueContext->Length = 0L;
}
- queueContext->Buffer = ExAllocatePoolWithTag(NonPagedPoolNx, Length, 'sam1');
+ queueContext->Buffer = ExAllocatePool2(POOL_FLAG_NON_PAGED, Length, 'sam1');
if( queueContext->Buffer == NULL ) {
KdPrint(("EchoEvtIoWrite: Could not allocate %Iu byte buffer\n",Length));
WdfRequestComplete(Request, STATUS_INSUFFICIENT_RESOURCES);
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;
diff --git a/general/toaster/toastDrv/kmdf/bus/dynamic/buspdo.c b/general/toaster/toastDrv/kmdf/bus/dynamic/buspdo.c
index d7d2cf54..52c847d3 100644
--- a/general/toaster/toastDrv/kmdf/bus/dynamic/buspdo.c
+++ b/general/toaster/toastDrv/kmdf/bus/dynamic/buspdo.c
@@ -82,8 +82,8 @@ Return Value:
return status;
}
- dst->HardwareIds = (PWCHAR) ExAllocatePoolWithTag(
- NonPagedPoolNx,
+ dst->HardwareIds = (PWCHAR) ExAllocatePool2(
+ POOL_FLAG_NON_PAGED,
safeMultResult,
BUS_TAG);
diff --git a/general/toaster/toastDrv/kmdf/func/featured/wmi.c b/general/toaster/toastDrv/kmdf/func/featured/wmi.c
index e7c76a23..f62eacd3 100644
--- a/general/toaster/toastDrv/kmdf/func/featured/wmi.c
+++ b/general/toaster/toastDrv/kmdf/func/featured/wmi.c
@@ -446,11 +446,9 @@ ToasterFireArrivalEvent(
//
// Allocate memory for the WNODE from NonPagedPoolNx
//
- wnode = ExAllocatePoolWithTag(NonPagedPoolNx, size, TOASTER_POOL_TAG);
+ wnode = ExAllocatePool2(POOL_FLAG_NON_PAGED, size, TOASTER_POOL_TAG);
if (NULL != wnode) {
- RtlZeroMemory(wnode, size);
-
wnode->WnodeHeader.BufferSize = size;
wnode->WnodeHeader.ProviderId =
IoWMIDeviceObjectToProviderId(