[RAMEN9610-20297][9610] vipx: fix prevent defects
authorSanghwa Park <senius.park@samsung.com>
Fri, 27 Sep 2019 00:45:59 +0000 (09:45 +0900)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:36 +0000 (20:23 +0300)
prevent defects (275231, 275562) is fixed

Change-Id: Ia18640d45964f8a28a1d90589cf42ebbdb04e9dc
Signed-off-by: Sanghwa Park <senius.park@samsung.com>
drivers/vision/vipx/vipx-queue.c
drivers/vision/vipx_vertex/vertex-queue.c

index 7f6509cc112cd63d27d254abf19bd3b165f49951..172f8a4e895e4aac12bac156dc71f96bbdcbc214 100644 (file)
@@ -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) {
index 6813164b91755c02579f6ba05378331328425743..5cf8a9497c57d4c4e939a679f0000de87fe968ff 100644 (file)
@@ -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) {