qcacmn: Free global pointer ol_sc
For TF SDIO chip, it allocated memory for global pointer ol_sc, but doesn't free when unloading, which cause memory leak. Change-Id: Ia27be884ccbaaeb01c9fd5b67898e6f7e4c54364 CRs-Fixed: 2070479
This commit is contained in:
@@ -243,6 +243,11 @@ static A_STATUS hif_sdio_remove(void *context, void *hif_handle)
|
|||||||
iounmap(scn->ramdump_base);
|
iounmap(scn->ramdump_base);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
if (ol_sc) {
|
||||||
|
qdf_mem_free(ol_sc);
|
||||||
|
ol_sc = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (scn) {
|
if (scn) {
|
||||||
qdf_mem_free(scn);
|
qdf_mem_free(scn);
|
||||||
scn = NULL;
|
scn = NULL;
|
||||||
|
Reference in New Issue
Block a user