media: videobuf2-core: fix wrong jump
authorJanghyuck Kim <janghyuck.kim@samsung.com>
Mon, 9 Jul 2018 04:51:23 +0000 (13:51 +0900)
committerJanghyuck Kim <janghyuck.kim@samsung.com>
Mon, 23 Jul 2018 05:39:49 +0000 (14:39 +0900)
In error case handling, wrong jump was detected and fixed.

Change-Id: I76006903406354c69b232fa6eee22034bfae0101
Signed-off-by: Janghyuck Kim <janghyuck.kim@samsung.com>
drivers/media/v4l2-core/videobuf2-core.c

index cb4e6298d627d25bcef7a9bcf8aad47107ed0229..50bbd25927ab8e4d8ddac4940471b0905238ee05 100644 (file)
@@ -1538,7 +1538,7 @@ int vb2_core_qbuf(struct vb2_queue *q, unsigned int index, void *pb,
            __get_num_ready_buffers(q) >= q->min_buffers_needed) {
                ret = vb2_start_streaming(q);
                if (ret)
-                       goto unlock;
+                       goto err;
        }
 
        /* Fill buffer information for the userspace */