[media] v4l2-dv-timings: add sanity checks in cvt,gtf calculations
authorPrashant Laddha <prladdha@cisco.com>
Wed, 22 Apr 2015 17:32:36 +0000 (14:32 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Fri, 1 May 2015 10:15:06 +0000 (07:15 -0300)
commit947ed99e5d1b1595312a320fb9db4f52965ceeae
tree0a33cd65467af1fb328b94824f897a02b1a7a9a1
parentd7ed5a3ddaec19d866ffc05ed2733179fbe4da9e
[media] v4l2-dv-timings: add sanity checks in cvt,gtf calculations

Wrong values of hfreq and image height can lead to strange timings.
Avoid timing calculations for such values.

Suggested By: Martin Bugge <marbugge@cisco.com>

Cc: Martin Bugge <marbugge@cisco.com>
Signed-off-by: Prashant Laddha <prladdha@cisco.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/v4l2-core/v4l2-dv-timings.c