summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhan Trinh Ha <[email protected]>2022-05-26 18:08:09 -0700
committerGitHub <[email protected]>2022-05-26 18:08:09 -0700
commit03cb8dc6e2caa5088fd3c7f7ca7e3c9b3489230d (patch)
treee953ec3efa379121fa406c7ed63c68ffb63f45fa
parentba69fa3c072abdb56029a324f0e6e23eea1b33d3 (diff)
[hid\firefly] Replace ExAllocatePoolWithTag -> ExAllocatePool2 (#734)
Update ExAllocatePoolWithTag -> ExAllocatePool2
-rw-r--r--hid/firefly/driver/vfeature.c9
1 files 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) {