From 1dd6b69b530324020038bc5601831191d635ca7c Mon Sep 17 00:00:00 2001 From: Mihir Ganu Date: Mon, 19 Aug 2019 13:27:16 -0700 Subject: [PATCH] msm: vidc: Set ETB extradata address to NULL during EOS Firmware needs to access extradata buffer to find the size of extradata. In secure sessions, assigning input buffer address to extradata address causes fault since firmware does not have access to input adderss. Extradata address and size in ETB must be set to zero for EOS cases so that firmware skips accessing the extradata buffer. CRs-Fixed: 2444064 Change-Id: Ia916d2f5f0500c85426fee3274f88fcf36103068 Signed-off-by: Mihir Ganu --- msm/vidc/msm_vidc_common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/vidc/msm_vidc_common.c b/msm/vidc/msm_vidc_common.c index f6b984f2dcc4..32815d811d5f 100644 --- a/msm/vidc/msm_vidc_common.c +++ b/msm/vidc/msm_vidc_common.c @@ -4039,7 +4039,7 @@ int msm_vidc_send_pending_eos_buffers(struct msm_vidc_inst *inst) data.offset = 0; data.flags = HAL_BUFFERFLAG_EOS; data.timestamp = 0; - data.extradata_addr = data.device_addr; + data.extradata_addr = 0; data.extradata_size = 0; dprintk(VIDC_HIGH, "Queueing EOS buffer 0x%x\n", data.device_addr);