aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStanimir Varbanov <stanimir.varbanov@linaro.org>2020-03-03 13:15:32 +0200
committerStanimir Varbanov <stanimir.varbanov@linaro.org>2020-03-09 15:48:25 +0200
commit7235fd4c8cdb1fbe2ec537b73d6a4fea93356a3a (patch)
tree37628a8f2f862d6680226c1734af32cc8ebd124d
parent00c43088aa680989407b6afbda295f67b3f123f1 (diff)
venus: vdec: Fix smatch warning in start streaming
This fixes the following smatch warning in the error path: drivers/media/platform/qcom/venus/vdec.c:968 vdec_start_streaming() warn: inconsistent returns 'mutex:&inst->lock'. Locked on: line 952 Unlocked on: line 963 line 968 Signed-off-by: Stanimir Varbanov <stanimir.varbanov@linaro.org>
-rw-r--r--drivers/media/platform/qcom/venus/vdec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/qcom/venus/vdec.c b/drivers/media/platform/qcom/venus/vdec.c
index f349201c0f0d..4ed2628585a1 100644
--- a/drivers/media/platform/qcom/venus/vdec.c
+++ b/drivers/media/platform/qcom/venus/vdec.c
@@ -949,7 +949,7 @@ static int vdec_start_streaming(struct vb2_queue *q, unsigned int count)
ret = venus_pm_acquire_core(inst);
if (ret)
- return ret;
+ goto error;
if (q->type == V4L2_BUF_TYPE_VIDEO_CAPTURE_MPLANE)
ret = vdec_start_capture(inst);

Privacy Policy