]> git.baikalelectronics.ru Git - kernel.git/commit
[media] v4l: vsp1: Fix plane stride and size checks
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Fri, 19 Jun 2015 11:51:22 +0000 (08:51 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 17 Jul 2015 13:02:48 +0000 (10:02 -0300)
commitcde27d6f1dad4d781eef48f216bc61ef159aafcd
tree7741eba8b5964817e7823599bd7e8d12eadf43d5
parentc257ab0da83bda56c2d12545d4b35691261f6099
[media] v4l: vsp1: Fix plane stride and size checks

The checks need to be performed on up to two planes, as the third plane,
if present, must have the same stride and size as the second plane.

The code incorrectly performs the checks on at least two planes instead
of at most two planes, fix it.

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vsp1/vsp1_video.c