diff options
| -rw-r--r-- | general/pcidrv/kmdf/HW/nic_init.c | 3 | ||||
| -rw-r--r-- | general/pcidrv/kmdf/HW/nic_pm.c | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/general/pcidrv/kmdf/HW/nic_init.c b/general/pcidrv/kmdf/HW/nic_init.c index 55f4199b..89f76ae6 100644 --- a/general/pcidrv/kmdf/HW/nic_init.c +++ b/general/pcidrv/kmdf/HW/nic_init.c @@ -1045,7 +1045,7 @@ Return Value: break; } - pMem = ExAllocatePoolWithTag(NonPagedPool, + pMem = ExAllocatePool2(POOL_FLAG_NON_PAGED, FdoData->MpTcbMemSize, PCIDRV_POOL_TAG); if (NULL == pMem ) { @@ -1054,7 +1054,6 @@ Return Value: break; } - RtlZeroMemory(pMem, FdoData->MpTcbMemSize); FdoData->MpTcbMem = pMem; // HW_START diff --git a/general/pcidrv/kmdf/HW/nic_pm.c b/general/pcidrv/kmdf/HW/nic_pm.c index 7bdd3b99..6b00bf52 100644 --- a/general/pcidrv/kmdf/HW/nic_pm.c +++ b/general/pcidrv/kmdf/HW/nic_pm.c @@ -1361,7 +1361,7 @@ Return Value: break; } - pWakeUpPattern = ExAllocatePoolWithTag(NonPagedPool, AllocationLength, PCIDRV_POOL_TAG); + pWakeUpPattern = ExAllocatePool2(POOL_FLAG_NON_PAGED, AllocationLength, PCIDRV_POOL_TAG); if (!pWakeUpPattern) { @@ -1371,8 +1371,6 @@ Return Value: // // Initialize pWakeUpPattern // - RtlZeroMemory (pWakeUpPattern, AllocationLength); - pWakeUpPattern->AllocationSize = AllocationLength; pWakeUpPattern->Signature = Signature; |
