From 03cb8dc6e2caa5088fd3c7f7ca7e3c9b3489230d Mon Sep 17 00:00:00 2001 From: Phan Trinh Ha <23308647+thpthp1@users.noreply.github.com> Date: Thu, 26 May 2022 18:08:09 -0700 Subject: [hid\firefly] Replace ExAllocatePoolWithTag -> ExAllocatePool2 (#734) Update ExAllocatePoolWithTag -> ExAllocatePool2 --- hid/firefly/driver/vfeature.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/hid/firefly/driver/vfeature.c b/hid/firefly/driver/vfeature.c index 5919a5e9..bb300c30 100644 --- a/hid/firefly/driver/vfeature.c +++ b/hid/firefly/driver/vfeature.c @@ -137,8 +137,8 @@ Return Value: goto ExitAndFree; } - preparsedData = (PHIDP_PREPARSED_DATA) ExAllocatePoolWithTag( - NonPagedPoolNx, collectionInformation.DescriptorSize, 'ffly'); + preparsedData = (PHIDP_PREPARSED_DATA) ExAllocatePool2( + POOL_FLAG_NON_PAGED, collectionInformation.DescriptorSize, 'ffly'); if (preparsedData == NULL) { status = STATUS_INSUFFICIENT_RESOURCES; @@ -177,8 +177,8 @@ Return Value: // // Create a report to send to the device. // - report = (PCHAR) ExAllocatePoolWithTag( - NonPagedPoolNx, caps.FeatureReportByteLength, 'ffly'); + report = (PCHAR) ExAllocatePool2( + POOL_FLAG_NON_PAGED, caps.FeatureReportByteLength, 'ffly'); if (report == NULL) { goto ExitAndFree; @@ -188,7 +188,6 @@ Return Value: // Start with a zeroed report. If we are disabling the feature, this might // be all we need to do. // - RtlZeroMemory(report, caps.FeatureReportByteLength); status = STATUS_SUCCESS; if (EnableFeature) { -- cgit v1.3.1