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 14:50:56 +0000 (23:50 +0900)
commit3d43b2b8a3cdadd6cef9ac8ef5d156b6214a01c8
tree8aee234e38599b7e658bca8fc25483438f654672
parentb0e20af206273e90d47647e7c806ddcc0a401f65
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