Commit 58f6d367 authored by Sakari Ailus's avatar Sakari Ailus Committed by Mauro Carvalho Chehab

media: omap3isp: Ignore endpoints with invalid configuration

If endpoint has an invalid configuration, ignore it instead of happily
proceeding to use it nonetheless. Ignoring such an endpoint is better than
failing since there could be multiple endpoints, only some of which are
bad.
Signed-off-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Tested-by: default avatarPavel Machek <pavel@ucw.cz>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent a4573084
......@@ -2111,10 +2111,12 @@ static int isp_fwnodes_parse(struct device *dev,
if (!isd)
goto error;
notifier->subdevs[notifier->num_subdevs] = &isd->asd;
if (isp_fwnode_parse(dev, fwnode, isd)) {
devm_kfree(dev, isd);
continue;
}
if (isp_fwnode_parse(dev, fwnode, isd))
goto error;
notifier->subdevs[notifier->num_subdevs] = &isd->asd;
isd->asd.match.fwnode.fwnode =
fwnode_graph_get_remote_port_parent(fwnode);
......
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