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

[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
...@@ -2235,8 +2235,11 @@ static int isp_of_parse_node(struct device *dev, struct device_node *node, ...@@ -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 isp_bus_cfg *buscfg = &isd->bus;
struct v4l2_of_endpoint vep; struct v4l2_of_endpoint vep;
unsigned int i; 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, dev_dbg(dev, "parsing endpoint %s, interface %u\n", node->full_name,
vep.base.port); vep.base.port);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment