Browse Source

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 years ago
parent
commit
0cb0862d1c
1 changed files with 3 additions and 0 deletions
  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) {