提交 8afb72ed 编写于 作者: N Niklas Söderlund 提交者: Mauro Carvalho Chehab

[media] rcar-vin: add missing error check to propagate error

The return value of __rvin_try_format_source is not checked, add a check
and propagate the error.
Signed-off-by: NNiklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: NLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: NMauro Carvalho Chehab <mchehab@s-opensource.com>
上级 f8a668f7
......@@ -208,6 +208,7 @@ static int __rvin_try_format(struct rvin_dev *vin,
{
const struct rvin_video_format *info;
u32 rwidth, rheight, walign;
int ret;
/* Requested */
rwidth = pix->width;
......@@ -235,7 +236,9 @@ static int __rvin_try_format(struct rvin_dev *vin,
pix->sizeimage = 0;
/* Limit to source capabilities */
__rvin_try_format_source(vin, which, pix, source);
ret = __rvin_try_format_source(vin, which, pix, source);
if (ret)
return ret;
switch (pix->field) {
case V4L2_FIELD_TOP:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册