qcacmn: Handle the duplicate entries in reo exception ring

We have come across scenarios where rxdma is pushing
a certain entry more than once to the reo exception
ring. In this scenario, when we try to unmap a buffer,
it can lead to multiple unmap of the same buffer.

Handle this case, by skipping the process of this
duplicate entry, if alrady unmapped, and proceed to the
next entry.

Change-Id: Iae66f27e432f795ba4730911029fa1d63a75cb06
CRs-Fixed: 2739176
此提交包含在:
Rakesh Pillai
2020-07-23 11:33:35 +05:30
提交者 snandini
父節點 9b715c34c5
當前提交 1de57c2150
共有 4 個檔案被更改,包括 53 行新增2 行删除

查看文件

@@ -1840,8 +1840,7 @@ QDF_STATUS dp_rx_desc_nbuf_sanity_check(hal_ring_desc_t ring_desc,
hal_rx_reo_buf_paddr_get(ring_desc, &hbi);
/* Sanity check for possible buffer paddr corruption */
if ((&hbi)->paddr ==
qdf_nbuf_get_frag_paddr(rx_desc->nbuf, 0))
if (dp_rx_desc_paddr_sanity_check(rx_desc, (&hbi)->paddr))
return QDF_STATUS_SUCCESS;
return QDF_STATUS_E_FAILURE;