ソースを参照

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
Wu Gao 7 年 前
コミット
f5bb0ac31b
1 ファイル変更5 行追加0 行削除
  1. 5 0
      hif/src/sdio/if_sdio.c

+ 5 - 0
hif/src/sdio/if_sdio.c

@@ -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;