From: stansmith Date: Sat, 29 Aug 2009 00:52:02 +0000 (+0000) Subject: [WINVERBS] To help match memory allocations with free, replace ExFreePool with ExFree... X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=f77a6aa806f7c55c3dd50d1d4044b3816b077c82;p=~shefty%2Frdma-win.git [WINVERBS] To help match memory allocations with free, replace ExFreePool with ExFreePoolWithTag. Signed-off-by: Sean Hefty git-svn-id: svn://openib.tc.cornell.edu/gen1@2395 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86 --- diff --git a/branches/WOF2-1/core/winmad/kernel/wm_driver.c b/branches/WOF2-1/core/winmad/kernel/wm_driver.c index b5b79e58..6d3cbdff 100644 --- a/branches/WOF2-1/core/winmad/kernel/wm_driver.c +++ b/branches/WOF2-1/core/winmad/kernel/wm_driver.c @@ -247,7 +247,7 @@ static ib_ca_attr_t *WmQueryCaAttributes(WM_IB_DEVICE *pDevice) ib_status = pDevice->VerbsInterface.Verbs. query_ca(pDevice->VerbsInterface.Verbs.p_hca_obj, attr, &size, NULL); if (ib_status != IB_SUCCESS) { - ExFreePool(attr); + ExFreePoolWithTag(attr, 'acmw'); attr = NULL; } @@ -282,7 +282,7 @@ static NTSTATUS WmAddCa(WM_IB_DEVICE *pDevice) status = STATUS_SUCCESS; out: - ExFreePool(attr); + ExFreePoolWithTag(attr, 'acmw'); return status; } @@ -361,7 +361,7 @@ static NTSTATUS WmPowerD0Exit(WDFDEVICE Device, WDF_POWER_DEVICE_STATE TargetSta pdev->IbInterface.wdm.InterfaceDereference(pdev->IbInterface.wdm.Context); if (pdev->pPortArray != NULL) { - ExFreePool(pdev->pPortArray); + ExFreePoolWithTag(pdev->pPortArray, 'pimw'); } if (destroy) { diff --git a/branches/WOF2-1/core/winmad/kernel/wm_reg.c b/branches/WOF2-1/core/winmad/kernel/wm_reg.c index 59f50556..8ee32e31 100644 --- a/branches/WOF2-1/core/winmad/kernel/wm_reg.c +++ b/branches/WOF2-1/core/winmad/kernel/wm_reg.c @@ -265,7 +265,7 @@ void WmRegFree(WM_REGISTRATION *pRegistatration) { WmRegRemoveHandler(pRegistatration); WmProviderPut(pRegistatration->pProvider); - ExFreePool(pRegistatration); + ExFreePoolWithTag(pRegistatration, 'grmw'); } void WmRegRemoveHandler(WM_REGISTRATION *pRegistration) diff --git a/branches/WOF2-1/core/winverbs/kernel/wv_cq.c b/branches/WOF2-1/core/winverbs/kernel/wv_cq.c index 6adcd15a..76e79db5 100644 --- a/branches/WOF2-1/core/winverbs/kernel/wv_cq.c +++ b/branches/WOF2-1/core/winverbs/kernel/wv_cq.c @@ -128,7 +128,7 @@ err3: err2: WdfObjectDelete(cq->Queue); err1: - ExFreePool(cq); + ExFreePoolWithTag(cq, 'qcvw'); return status; } @@ -235,7 +235,7 @@ void WvCqFree(WV_COMPLETION_QUEUE *pCq) WdfObjectDelete(pCq->Queue); WdfObjectDelete(pCq->ErrorQueue); WvDevicePut(pCq->pDevice); - ExFreePool(pCq); + ExFreePoolWithTag(pCq, 'qcvw'); } void WvCqResize(WV_PROVIDER *pProvider, WDFREQUEST Request) diff --git a/branches/WOF2-1/core/winverbs/kernel/wv_srq.c b/branches/WOF2-1/core/winverbs/kernel/wv_srq.c index b0877aba..99f2b492 100644 --- a/branches/WOF2-1/core/winverbs/kernel/wv_srq.c +++ b/branches/WOF2-1/core/winverbs/kernel/wv_srq.c @@ -133,7 +133,7 @@ static NTSTATUS WvSrqAlloc(WV_PROTECTION_DOMAIN *pPd, WV_IO_SRQ_ATTRIBUTES *pAtt err2: WdfObjectDelete(srq->Queue); err1: - ExFreePool(srq); + ExFreePoolWithTag(srq, 'rsvw'); return STATUS_UNSUCCESSFUL; } @@ -239,7 +239,7 @@ void WvSrqFree(WV_SHARED_RECEIVE_QUEUE *pSrq) WdfIoQueuePurgeSynchronously(pSrq->Queue); WdfObjectDelete(pSrq->Queue); WvPdPut(pSrq->pPd); - ExFreePool(pSrq); + ExFreePoolWithTag(pSrq, 'rsvw'); } void WvSrqModify(WV_PROVIDER *pProvider, WDFREQUEST Request) diff --git a/branches/WOF2-1/etc/kernel/work_queue.c b/branches/WOF2-1/etc/kernel/work_queue.c index 24af0647..f83254a3 100644 --- a/branches/WOF2-1/etc/kernel/work_queue.c +++ b/branches/WOF2-1/etc/kernel/work_queue.c @@ -85,7 +85,7 @@ err: while (--i > 0) { IoFreeWorkItem(pWorkQueue->TaskArray[i].pWorkItem); } - ExFreePool(pWorkQueue->TaskArray); + ExFreePoolWithTag(pWorkQueue->TaskArray, 'ktqw'); return STATUS_INSUFFICIENT_RESOURCES; }