From 3b15874906b317eb1ed6e9e47df1486674e676ee Mon Sep 17 00:00:00 2001 From: Janghyuck Kim Date: Mon, 9 Jul 2018 13:51:23 +0900 Subject: [PATCH] media: videobuf2-core: fix wrong jump In error case handling, wrong jump was detected and fixed. Change-Id: I76006903406354c69b232fa6eee22034bfae0101 Signed-off-by: Janghyuck Kim --- drivers/media/v4l2-core/videobuf2-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/v4l2-core/videobuf2-core.c b/drivers/media/v4l2-core/videobuf2-core.c index cb4e6298d627..50bbd25927ab 100644 --- a/drivers/media/v4l2-core/videobuf2-core.c +++ b/drivers/media/v4l2-core/videobuf2-core.c @@ -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 */ -- 2.20.1