]> git.baikalelectronics.ru Git - kernel.git/commit
[media] vivid: sanitize selection rectangle
authorHans Verkuil <hans.verkuil@cisco.com>
Sun, 15 Mar 2015 16:40:04 +0000 (13:40 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 3 Apr 2015 00:10:45 +0000 (21:10 -0300)
commit299eff05d4dabe9048e46a0e48ab53215787a4e5
tree4fae28f342b03aa3ea8762ab3d82db1996a7846a
parentb1a5baa16ffbb457d0a1ad9469f04892d82ac072
[media] vivid: sanitize selection rectangle

Handle values like ~0 as width, height, left or top fields.
Just strip off the top 16 bits will ensure that the calculations
remain OK.

Found with v4l2-compliance.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/platform/vivid/vivid-vid-common.c