Explorar el Código

qcacmn: unmap buffer for CE destination ring en-queue error

Unmap a previously mapped buffer if host fails to en-queue
buffer to CE destination ring.

Propagation from qcacld-2.0 to qcacmn.

Change-Id: If23398b01124638cfb266f5755fc9e45d3969ac9
CRs-Fixed: 1033307
Govind Singh hace 8 años
padre
commit
4fcafd4990
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      hif/src/ce/ce_main.c

+ 2 - 0
hif/src/ce/ce_main.c

@@ -1647,6 +1647,8 @@ static int hif_post_recv_buffers_for_pipe(struct HIF_CE_pipe_info *pipe_info)
 				__func__, pipe_info->pipe_num,
 				atomic_read(&pipe_info->recv_bufs_needed),
 				pipe_info->nbuf_ce_enqueue_err_count);
+			qdf_nbuf_unmap_single(scn->qdf_dev, nbuf,
+						QDF_DMA_FROM_DEVICE);
 			atomic_inc(&pipe_info->recv_bufs_needed);
 			qdf_nbuf_free(nbuf);
 			return 1;