winmad: revert changes from commit 2512
authorshefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 3 Nov 2009 17:20:07 +0000 (17:20 +0000)
committershefty <shefty@ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86>
Tue, 3 Nov 2009 17:20:07 +0000 (17:20 +0000)
git-svn-id: svn://openib.tc.cornell.edu/gen1/trunk@2538 ad392aa1-c5ef-ae45-8dd8-e69d62a5ef86

core/winmad/kernel/wm_driver.c

index b5b79e5..6d3cbdf 100644 (file)
@@ -247,7 +247,7 @@ static ib_ca_attr_t *WmQueryCaAttributes(WM_IB_DEVICE *pDevice)
        ib_status = pDevice->VerbsInterface.Verbs.\r
                                query_ca(pDevice->VerbsInterface.Verbs.p_hca_obj, attr, &size, NULL);\r
        if (ib_status != IB_SUCCESS) {\r
-               ExFreePool(attr);\r
+               ExFreePoolWithTag(attr, 'acmw');\r
                attr = NULL;\r
        }\r
 \r
@@ -282,7 +282,7 @@ static NTSTATUS WmAddCa(WM_IB_DEVICE *pDevice)
 \r
        status = STATUS_SUCCESS;\r
 out:\r
-       ExFreePool(attr);\r
+       ExFreePoolWithTag(attr, 'acmw');\r
        return status;\r
 }\r
 \r
@@ -361,7 +361,7 @@ static NTSTATUS WmPowerD0Exit(WDFDEVICE Device, WDF_POWER_DEVICE_STATE TargetSta
 \r
        pdev->IbInterface.wdm.InterfaceDereference(pdev->IbInterface.wdm.Context);\r
        if (pdev->pPortArray != NULL) {\r
-               ExFreePool(pdev->pPortArray);\r
+               ExFreePoolWithTag(pdev->pPortArray, 'pimw');\r
        }\r
 \r
        if (destroy) {\r