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

Commit c517b352 authored by Javier Martinez Canillas's avatar Javier Martinez Canillas Committed by Mauro Carvalho Chehab
Browse files

[media] omap3isp: Check v4l2_of_parse_endpoint() return value



The v4l2_of_parse_endpoint() function can fail so check the return value.

Signed-off-by: default avatarJavier Martinez Canillas <javier@osg.samsung.com>
Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent 234eab84
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2235,8 +2235,11 @@ static int isp_of_parse_node(struct device *dev, struct device_node *node,
	struct isp_bus_cfg *buscfg = &isd->bus;
	struct v4l2_of_endpoint vep;
	unsigned int i;
	int ret;

	v4l2_of_parse_endpoint(node, &vep);
	ret = v4l2_of_parse_endpoint(node, &vep);
	if (ret)
		return ret;

	dev_dbg(dev, "parsing endpoint %s, interface %u\n", node->full_name,
		vep.base.port);