From: Sakari Ailus Date: Tue, 28 Feb 2017 12:38:44 +0000 (-0500) Subject: media: omap3isp: Check for valid port in endpoints X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=831f3494d2327ef581bdae934caa7b6c9bc34da8;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Reviewed-by: Sebastian Reichel Tested-by: Pavel Machek Signed-off-by: Mauro Carvalho Chehab --- 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;