浏览代码

video: driver: update streamoff failure return code.

Currently streamoff failure error code was overriden with zero.
added change to propagate correct error code.

Change-Id: I9ad92f27ae6de109c9959abf0692e6e32cd52d3d
Signed-off-by: Govindaraj Rajagopal <[email protected]>
Govindaraj Rajagopal 4 年之前
父节点
当前提交
0cb0862d1c
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      driver/vidc/src/msm_vidc_driver.c

+ 3 - 0
driver/vidc/src/msm_vidc_driver.c

@@ -2195,6 +2195,9 @@ int msm_vidc_session_streamoff(struct msm_vidc_inst *inst,
 	}
 	mutex_lock(&inst->lock);
 
+	if(rc)
+		goto error:
+
 	/* no more queued buffers after streamoff */
 	count = msm_vidc_num_buffers(inst, buffer_type, MSM_VIDC_ATTR_QUEUED);
 	if (!count) {