diff options
| author | Yue Ma <yuem@qca.qualcomm.com> | 2014-08-19 11:26:46 -0700 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2014-08-28 20:59:56 -0700 |
| commit | 10d299bbd6cda147d9a8e2057d12b57b79f5b7df (patch) | |
| tree | 8707d208193db41659c7db0e7bb94ff437c87719 | |
| parent | 21f4d1a5157e2f1c9afbb19510c07078a44a45e9 (diff) | |
qca_cld: Fix potential memory leak in SSR routine
sc->hif_device should also be freed in SSR shutdown routine, otherwise
it will cause memory leak.
Change-Id: I4d4bd1fed930a3fc0a64868da54259f80cc8b1e2
CRs-fixed: 711870
| -rw-r--r-- | CORE/SERVICES/HIF/PCIe/if_pci.c | 1 |
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 865621050fc2..aea5e505aa8e 100644 --- a/CORE/SERVICES/HIF/PCIe/if_pci.c +++ b/CORE/SERVICES/HIF/PCIe/if_pci.c @@ -1697,6 +1697,7 @@ void hif_pci_shutdown(struct pci_dev *pdev) #endif A_FREE(scn); + A_FREE(sc->hif_device); A_FREE(sc); pci_set_drvdata(pdev, NULL); pci_iounmap(pdev, mem); |
