提交 590a58d1 编写于 作者: D Dan Carpenter 提交者: Mauro Carvalho Chehab

V4L/DVB: unlock on error path

If we return directly here then we miss out on some mutex_unlock()s
Signed-off-by: NDan Carpenter <error27@gmail.com>
Acked-by: NSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@redhat.com>
上级 0f63a14d
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册