qcacmn: fix memory leak issue in tx mgmt ctrl payload tlv

fix memory leak issue in tx mgmt ctrl payload tlv.
if any of the mgmt or pkt capture feature is turned on.
htt_t2h_msg is hold in mgmt_buf and not set to NULL on free.
which cause leaking next target to host nbuf.

Change-Id: I0d9e0194e51a21b348aadf747b8c9def5c245eda
这个提交包含在:
nobelj
2019-06-20 23:45:43 -07:00
提交者 nshrivas
父节点 5f1b698282
当前提交 2a1312cd25
修改 2 个文件,包含 6 行新增6 行删除

查看文件

@@ -3030,17 +3030,15 @@ static bool dp_txrx_ppdu_stats_handler(struct dp_soc *soc,
(pdev, htt_t2h_msg, pdev->mgmtctrl_frm_info.ppdu_id) !=
QDF_STATUS_SUCCESS)
free_buf = false;
if (free_buf) {
pdev->mgmtctrl_frm_info.mgmt_buf = NULL;
pdev->mgmtctrl_frm_info.mgmt_buf_len = 0;
pdev->mgmtctrl_frm_info.ppdu_id = 0;
}
}
if (ppdu_info)
dp_ppdu_desc_deliver(pdev, ppdu_info);
pdev->mgmtctrl_frm_info.mgmt_buf = NULL;
pdev->mgmtctrl_frm_info.mgmt_buf_len = 0;
pdev->mgmtctrl_frm_info.ppdu_id = 0;
return free_buf;
}
#else