forked from Minki/linux
media: omap3isp: Check for valid port in endpoints
Check that we do have a valid port in an endpoint, return an error if not. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Reviewed-by: Sebastian Reichel <sebastian.reichel@collabora.co.uk> Tested-by: Pavel Machek <pavel@ucw.cz> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
9d2656e9c0
commit
831f3494d2
@ -2080,7 +2080,7 @@ static int isp_fwnode_parse(struct device *dev, struct fwnode_handle *fwnode,
|
|||||||
default:
|
default:
|
||||||
dev_warn(dev, "%s: invalid interface %u\n",
|
dev_warn(dev, "%s: invalid interface %u\n",
|
||||||
to_of_node(fwnode)->full_name, vep.base.port);
|
to_of_node(fwnode)->full_name, vep.base.port);
|
||||||
break;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user