From: Laurent Pinchart Date: Mon, 19 May 2014 15:14:42 +0000 (-0300) Subject: [media] omap3isp: video: Validate the video node field order X-Git-Tag: v3.19-rc6~11^2~924 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f7abbe989f7aa5e1d65fc7f171b8c144f4382045;p=platform%2Fkernel%2Flinux-exynos.git [media] omap3isp: video: Validate the video node field order The field order requested on the video node must match the field order at the connected subdevice source pad. Signed-off-by: Laurent Pinchart Tested-by: Enrico Butera Acked-by: Sakari Ailus Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/platform/omap3isp/ispvideo.c b/drivers/media/platform/omap3isp/ispvideo.c index 2fe1c46..756c162 100644 --- a/drivers/media/platform/omap3isp/ispvideo.c +++ b/drivers/media/platform/omap3isp/ispvideo.c @@ -309,10 +309,11 @@ isp_video_check_format(struct isp_video *video, struct isp_video_fh *vfh) vfh->format.fmt.pix.height != format.fmt.pix.height || vfh->format.fmt.pix.width != format.fmt.pix.width || vfh->format.fmt.pix.bytesperline != format.fmt.pix.bytesperline || - vfh->format.fmt.pix.sizeimage != format.fmt.pix.sizeimage) + vfh->format.fmt.pix.sizeimage != format.fmt.pix.sizeimage || + vfh->format.fmt.pix.field != format.fmt.pix.field) return -EINVAL; - return ret; + return 0; } /* -----------------------------------------------------------------------------