From: Janghyuck Kim Date: Mon, 9 Jul 2018 04:51:23 +0000 (+0900) Subject: media: videobuf2-core: fix wrong jump X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3b15874906b317eb1ed6e9e47df1486674e676ee;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git media: videobuf2-core: fix wrong jump In error case handling, wrong jump was detected and fixed. Change-Id: I76006903406354c69b232fa6eee22034bfae0101 Signed-off-by: Janghyuck Kim --- 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 */