summaryrefslogtreecommitdiff
path: root/usb/usbsamp/sys/stream.c
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 /usb/usbsamp/sys/stream.c
parent5ab839435fd1c6d5f60171312cc0b078544b060d (diff)
Buses samples should use ExAllocatePool2 (#611)
* Updating samples to utilize ExAllocatePool2 which zero-initializes pool allocations
Diffstat (limited to 'usb/usbsamp/sys/stream.c')
-rw-r--r--usb/usbsamp/sys/stream.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usb/usbsamp/sys/stream.c b/usb/usbsamp/sys/stream.c
index ee434b35..d8cc05d9 100644
--- a/usb/usbsamp/sys/stream.c
+++ b/usb/usbsamp/sys/stream.c
@@ -199,8 +199,8 @@ Return Value:
pStreamInfo->NumberOfStreams = supportedStreams;
- pStreamInfo->StreamList = ExAllocatePoolWithTag(
- NonPagedPoolNx,
+ pStreamInfo->StreamList = ExAllocatePool2(
+ POOL_FLAG_NON_PAGED,
supportedStreams * sizeof(USBD_STREAM_INFORMATION),
POOL_TAG);