qcacmn: Free mem leak in qmi bypass mode

QMI bypass mode uses 2mb of of mem region for
fw uses. Current implementation does not free this
memory region when qmi bypass mode in enabled.
Free mem leak in qmi bypass mode.

Change-Id: Ie11aa9f20f93183e0b999cd6578aea4b231f8d8b
This commit is contained in:
Govind Singh
2020-10-12 12:21:15 +05:30
committed by snandini
parent 1e52a027ce
commit 183dd69628
3 changed files with 68 additions and 15 deletions

View File

@@ -204,6 +204,10 @@ struct hif_softc {
atomic_t link_suspended;
uint32_t *vaddr_rri_on_ddr;
qdf_dma_addr_t paddr_rri_on_ddr;
#ifdef CONFIG_BYPASS_QMI
uint32_t *vaddr_qmi_bypass;
qdf_dma_addr_t paddr_qmi_bypass;
#endif
int linkstate_vote;
bool fastpath_mode_on;
atomic_t tasklet_from_intr;
@@ -467,4 +471,5 @@ void hif_uninit_rri_on_ddr(struct hif_softc *scn);
static inline
void hif_uninit_rri_on_ddr(struct hif_softc *scn) {}
#endif
void hif_cleanup_static_buf_to_target(struct hif_softc *scn);
#endif /* __HIF_MAIN_H__ */