Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1e190ec6 authored by Paras Nagda's avatar Paras Nagda Committed by Gerrit - the friendly Code Review server
Browse files

msm: vidc: Fix qbuf related failures



Recent incomplete fd race condition fix(4190655)
is causing qbuf failures if decode batching
is enabled. Fix is added to make qbuf working in
this case.

Change-Id: I4abfc0619ff4b5c5a25d3e7666f84613a05ff6ee
Signed-off-by: default avatarParas Nagda <quic_pnagda@quicinc.com>
Signed-off-by: default avatarVasantha Balla <quic_vballa@quicinc.com>
parent d3207e67
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6763,7 +6763,8 @@ struct msm_vidc_buffer *msm_comm_get_vidc_buffer(struct msm_vidc_inst *inst,
	while (planes)
		msm_smem_put_dma_buf((struct dma_buf *)dma_planes[--planes]);

	return rc ? ERR_PTR(rc) : mbuf;
	return rc ? ((rc == -EEXIST && !inst->batch.enable) ?
			ERR_PTR(rc) : mbuf) : mbuf;
}

void msm_comm_put_vidc_buffer(struct msm_vidc_inst *inst,