diff options
| author | Govind Singh <govinds@qti.qualcomm.com> | 2016-06-23 11:59:55 +0530 |
|---|---|---|
| committer | Anjaneedevi Kapparapu <akappa@codeaurora.org> | 2016-06-24 14:34:06 +0530 |
| commit | ccfa2c4ba4ed44109eb7499859f844e6377180de (patch) | |
| tree | 2bab10e9766a24785277354a81090a69d67d24ba | |
| parent | c323e4d44574abb059c7692fd2aac3de15e4b369 (diff) | |
qcacld-2.0: unmap buffer for CE dst ring en-queue error
Unmap a previously mapped buffer if host fails to en-queue
buffer to CE destination ring.
Change-Id: If23398b01124638cfb266f5755fc9e45d3969ac9
CRs-Fixed: 1033307
| -rw-r--r-- | CORE/SERVICES/HIF/PCIe/hif_pci.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/CORE/SERVICES/HIF/PCIe/hif_pci.c b/CORE/SERVICES/HIF/PCIe/hif_pci.c index 26c73b5928f9..498f8d6ef69f 100644 --- a/CORE/SERVICES/HIF/PCIe/hif_pci.c +++ b/CORE/SERVICES/HIF/PCIe/hif_pci.c @@ -97,9 +97,6 @@ HIF_ACCESS_LOG pcie_access_log[PCIE_ACCESS_LOG_NUM]; static void HIFTargetDumpAccessLog(void); #endif -/* Forward references */ -static int hif_post_recv_buffers_for_pipe(struct HIF_CE_pipe_info *pipe_info); - /* * Host software's Copy Engine configuration. * This table is derived from the CE_PCI TABLE, above. @@ -1590,6 +1587,7 @@ hif_post_recv_buffers_for_pipe(struct HIF_CE_pipe_info *pipe_info) ("%s CE_recv_buf_enqueue error [%d] needed %d\n", __func__, pipe_info->pipe_num, atomic_read(&pipe_info->recv_bufs_needed))); + adf_nbuf_unmap_single(scn->adf_dev, nbuf, ADF_OS_DMA_FROM_DEVICE); atomic_inc(&pipe_info->recv_bufs_needed); adf_nbuf_free(nbuf); adf_os_spin_lock_bh(&pipe_info->recv_bufs_needed_lock); |
