summaryrefslogtreecommitdiff
path: root/drivers/media/i2c/ov772x.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2018-08-23 11:10:05 +0300
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2018-08-31 15:30:46 +0300
commitbe5a1509af8dd8a78fea24a35fe4a82d4cd0ae70 (patch)
treed7a3a184ca868cb17c8abb8097f840ff11ef317d /drivers/media/i2c/ov772x.c
parentcd12b401adc3cdfa643172f664aa28ecebbd3b67 (diff)
downloadlinux-be5a1509af8dd8a78fea24a35fe4a82d4cd0ae70.tar.xz
media: vicodec: fix out-of-range values when decoding
While decoding you need to make sure you do not get values < 0 or > 255. Note that since this code will also be used in userspace utilities the clamp macro isn't used since that is kernel-only. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'drivers/media/i2c/ov772x.c')
0 files changed, 0 insertions, 0 deletions