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:49:18 +0000 (23:49 +0900)
commit15ded23db134da975b49ea99770de0346c193b24
tree920c74c92b8a4fa6b5994203204fa8164fb61f5d
parente1b5b061987d56d7b64da962fec3be4ae7e78300
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