summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRajeev Kumar <rajekuma@qca.qualcomm.com>2014-03-12 19:53:43 -0700
committerAkash Patel <c_akashp@qca.qualcomm.com>2014-03-14 10:34:11 -0700
commit9d84d30fefc9314dd02e01722ec1aafbd2cef102 (patch)
treed637a9e5d900d0ca98bf6025c3accf1cc255d955
parent918707606835462bfb15bda3f9c79e7dd40fd3c5 (diff)
qcacld: Fix of Memory leak in HIF_PCIDeviceProbed
Fix of memory leak in HIF_PCIDeviceProbed() for sc->hif_device Change-Id: I5127d07c38626aa59ec82afb1c5bdcafd152f434 CRs-Fixed: 630802
-rw-r--r--CORE/SERVICES/HIF/PCIe/if_pci.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/CORE/SERVICES/HIF/PCIe/if_pci.c b/CORE/SERVICES/HIF/PCIe/if_pci.c
index 9f11d8d3c074..b9be432a0b9f 100644
--- a/CORE/SERVICES/HIF/PCIe/if_pci.c
+++ b/CORE/SERVICES/HIF/PCIe/if_pci.c
@@ -1459,6 +1459,7 @@ hif_pci_remove(struct pci_dev *pdev)
pci_disable_msi(pdev);
A_FREE(scn);
+ A_FREE(sc->hif_device);
A_FREE(sc);
pci_set_drvdata(pdev, NULL);
pci_iounmap(pdev, mem);