]> git.baikalelectronics.ru Git - kernel.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 14:56:55 +0000 (23:56 +0900)
commitffe3dca35e5f621bb005002e99c512238954b276
tree24e384c58f9f85cfeb4a11560efef6e598e1c059
parentfcf45b01aef1e6ee68707a1475364e2018bd297c
media: v4l2-dv-timings: add sanity checks for blanking values

[ Upstream commit 9374029c0dfaa8bc60334d7d92045a50952a95b0 ]

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: aeaae7b019da ([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