]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: v4l2-dv-timings: add sanity checks for blanking values
authorHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 13 Oct 2022 08:00:34 +0000 (09:00 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Nov 2022 15:00:31 +0000 (00:00 +0900)
commitdc7276c3f6ca008be1faf531f84b49906c9bcf7f
tree69ffe07a89808364d97bc57b5c8a80185f93fe7f
parent74e2e978d1e36c3b67e998e779c02cbc8f481527
media: v4l2-dv-timings: add sanity checks for blanking values

[ Upstream commit 4b6d66a45ed34a15721cb9e11492fa1a24bc83df ]

Add sanity checks to v4l2_valid_dv_timings() to ensure that the provided
blanking values are reasonable.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Fixes: b18787ed1ce3 ([media] v4l2-dv-timings: add new helper module)
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/v4l2-core/v4l2-dv-timings.c