From: Sanghwa Park Date: Fri, 27 Sep 2019 00:45:59 +0000 (+0900) Subject: [RAMEN9610-20297][9610] vipx: fix prevent defects X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a51042bd7896f0fc8b98bab9a13349c46dbb062f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [RAMEN9610-20297][9610] vipx: fix prevent defects prevent defects (275231, 275562) is fixed Change-Id: Ia18640d45964f8a28a1d90589cf42ebbdb04e9dc Signed-off-by: Sanghwa Park --- diff --git a/drivers/vision/vipx/vipx-queue.c b/drivers/vision/vipx/vipx-queue.c index 7f6509cc112c..172f8a4e895e 100644 --- a/drivers/vision/vipx/vipx-queue.c +++ b/drivers/vision/vipx/vipx-queue.c @@ -357,8 +357,11 @@ static int __vipx_queue_bundle_unprepare(struct vipx_queue *queue, unsigned int c_cnt, count, b_cnt; vipx_enter(); - if (!test_bit(VS4L_CL_FLAG_PREPARE, &bundle->flags)) + if (!test_bit(VS4L_CL_FLAG_PREPARE, &bundle->flags)) { + ret = -EINVAL; + vipx_err("bundle status is not prepare\n"); goto p_err; + } con = bundle->clist.containers; for (c_cnt = 0; c_cnt < bundle->clist.count; ++c_cnt) { diff --git a/drivers/vision/vipx_vertex/vertex-queue.c b/drivers/vision/vipx_vertex/vertex-queue.c index 6813164b9175..5cf8a9497c57 100644 --- a/drivers/vision/vipx_vertex/vertex-queue.c +++ b/drivers/vision/vipx_vertex/vertex-queue.c @@ -358,8 +358,11 @@ static int __vertex_queue_bundle_unprepare(struct vertex_queue *queue, unsigned int c_cnt, count, b_cnt; vertex_enter(); - if (!test_bit(VS4L_CL_FLAG_PREPARE, &bundle->flags)) + if (!test_bit(VS4L_CL_FLAG_PREPARE, &bundle->flags)) { + ret = -EINVAL; + vertex_err("bundle status is not prepare\n"); goto p_err; + } con = bundle->clist.containers; for (c_cnt = 0; c_cnt < bundle->clist.count; ++c_cnt) {