qcacmn: Fix the tx desc buf leak issue

Fix the tx desc and mcuc buffer leak issue in case of
hw enqueue failure with ME5 enabled.

Change-Id: Ibd8f924e66a9d828940c6f599584763f1dfc59a6
CRs-Fixed: 3194095
这个提交包含在:
Sai Rupesh Chevuru
2022-05-12 17:00:48 +05:30
提交者 Madan Koyyalamudi
父节点 05072ad2c0
当前提交 c1f2908102

查看文件

@@ -2538,6 +2538,7 @@ qdf_nbuf_t dp_tx_send_msdu_multiple(struct dp_vdev *vdev, qdf_nbuf_t nbuf,
*/
qdf_nbuf_free(msdu_info->u.sg_info
.curr_seg->nbuf);
dp_tx_desc_release(tx_desc, tx_q->desc_pool_id);
if (msdu_info->u.sg_info.curr_seg->next) {
msdu_info->u.sg_info.curr_seg =
msdu_info->u.sg_info
@@ -2547,7 +2548,6 @@ qdf_nbuf_t dp_tx_send_msdu_multiple(struct dp_vdev *vdev, qdf_nbuf_t nbuf,
} else
break;
i++;
dp_tx_desc_release(tx_desc, tx_q->desc_pool_id);
continue;
}