diff options
author | Sakari Ailus <sakari.ailus@linux.intel.com> | 2017-02-28 13:38:44 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-07-19 21:45:14 +0200 |
commit | 831f3494d2327ef581bdae934caa7b6c9bc34da8 (patch) | |
tree | dada42ce3e92a947ea73698e554d3764413d2197 /drivers | |
parent | media: smiapp: add CCP2 support (diff) | |
download | linux-831f3494d2327ef581bdae934caa7b6c9bc34da8.tar.xz linux-831f3494d2327ef581bdae934caa7b6c9bc34da8.zip |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/media/platform/omap3isp/isp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/platform/omap3isp/isp.c b/drivers/media/platform/omap3isp/isp.c index 9df64c189883..40d1a200be32 100644 --- a/drivers/media/platform/omap3isp/isp.c +++ b/drivers/media/platform/omap3isp/isp.c @@ -2080,7 +2080,7 @@ static int isp_fwnode_parse(struct device *dev, struct fwnode_handle *fwnode, default: dev_warn(dev, "%s: invalid interface %u\n", to_of_node(fwnode)->full_name, vep.base.port); - break; + return -EINVAL; } return 0; |