mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
qcacld-3.0: Free rx_buff_list in htt_detach
qcacld-2.0 to qcacld-3.0 propagation rx_buff_list is not getting freed in htt_detach and causing memory leak. Change-Id: Ia9d6660674c5b4570d337cb66995fc2449145d59 CRs-Fixed: 918223
This commit is contained in:
parent
d79e134de3
commit
c5ce2905e5
2 changed files with 18 additions and 0 deletions
|
|
@ -350,6 +350,7 @@ void htt_detach(htt_pdev_handle pdev)
|
|||
#endif
|
||||
HTT_TX_MUTEX_DESTROY(&pdev->htt_tx_mutex);
|
||||
HTT_TX_NBUF_QUEUE_MUTEX_DESTROY(pdev);
|
||||
htt_rx_dbg_rxbuf_deinit(pdev);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -571,6 +571,18 @@ void htt_rx_dbg_rxbuf_reset(struct htt_pdev_t *pdev,
|
|||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* htt_rx_dbg_rxbuf_deinit() - deinit debug rx buff list
|
||||
* @pdev: pdev handle
|
||||
*
|
||||
* Return: none
|
||||
*/
|
||||
static inline
|
||||
void htt_rx_dbg_rxbuf_deinit(struct htt_pdev_t *pdev)
|
||||
{
|
||||
if (pdev->rx_buff_list)
|
||||
cdf_mem_free(pdev->rx_buff_list);
|
||||
}
|
||||
#else
|
||||
static inline
|
||||
void htt_rx_dbg_rxbuf_init(struct htt_pdev_t *pdev)
|
||||
|
|
@ -590,5 +602,10 @@ void htt_rx_dbg_rxbuf_reset(struct htt_pdev_t *pdev,
|
|||
{
|
||||
return;
|
||||
}
|
||||
static inline
|
||||
void htt_rx_dbg_rxbuf_deinit(struct htt_pdev_t *pdev)
|
||||
{
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
#endif /* _HTT_INTERNAL__H_ */
|
||||
|
|
|
|||
Loading…
Reference in a new issue