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)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Tue, 25 Oct 2022 15:39:47 +0000 (16:39 +0100)
commit4b6d66a45ed34a15721cb9e11492fa1a24bc83df
tree16b9948ed011ee52d18342f2503ce78bc189eb2f
parent1f65ea411cc7b6ff128d82a3493d7b5648054e6f
media: v4l2-dv-timings: add sanity checks for blanking values

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>
drivers/media/v4l2-core/v4l2-dv-timings.c