mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
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:
parent
f4c4186d0d
commit
f5bb0ac31b
1 changed files with 5 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue