diff options
| author | matwilli <[email protected]> | 2021-04-20 10:59:31 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-04-20 10:59:31 -0700 |
| commit | 80c104ad0cef2a4fb55aaee7d494f30af5fb44b4 (patch) | |
| tree | dfb8ab99407da02a71c420a726a7f7439b27e6a8 /general/echo/kmdf/driver | |
| parent | 5ab839435fd1c6d5f60171312cc0b078544b060d (diff) | |
Buses samples should use ExAllocatePool2 (#611)
* Updating samples to utilize ExAllocatePool2 which zero-initializes pool allocations
Diffstat (limited to 'general/echo/kmdf/driver')
| -rw-r--r-- | general/echo/kmdf/driver/AutoSync/queue.c | 2 | ||||
| -rw-r--r-- | general/echo/kmdf/driver/DriverSync/queue.c | 2 |
2 files changed, 2 insertions, 2 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); |
