Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 590a58d1 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB: unlock on error path



If we return directly here then we miss out on some mutex_unlock()s

Signed-off-by: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 0f63a14d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -822,7 +822,8 @@ static int fimc_m2m_s_fmt(struct file *file, void *priv, struct v4l2_format *f)
	} else {
		v4l2_err(&ctx->fimc_dev->m2m.v4l2_dev,
			 "Wrong buffer/video queue type (%d)\n", f->type);
		return -EINVAL;
		ret = -EINVAL;
		goto s_fmt_out;
	}

	pix = &f->fmt.pix;