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
@@ -243,6 +243,11 @@ static A_STATUS hif_sdio_remove(void *context, void *hif_handle)
iounmap(scn->ramdump_base);
#endif
+ if (ol_sc) {
+ qdf_mem_free(ol_sc);
+ ol_sc = NULL;
+ }
+
if (scn) {
qdf_mem_free(scn);
scn = NULL;