diff options
author | Prashant Laddha <prladdha@cisco.com> | 2015-05-05 10:16:27 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@osg.samsung.com> | 2015-05-18 16:27:29 -0300 |
commit | c9bc9f50753d20d24836831d40e1efe74c21b0ef (patch) | |
tree | 3c2222d564c150a359f951a5f21ebc7e477a4f6e /drivers/media/pci | |
parent | ed1bc664daf58af7da47581fe43d42b95a1de65a (diff) | |
download | linux-stable-c9bc9f50753d20d24836831d40e1efe74c21b0ef.tar.gz linux-stable-c9bc9f50753d20d24836831d40e1efe74c21b0ef.tar.bz2 linux-stable-c9bc9f50753d20d24836831d40e1efe74c21b0ef.zip |
[media] v4l2-dv-timings: fix overflow in gtf timings calculation
The intermediate calculation in the expression for hblank can exceed
32 bit signed range. This overflow can lead to negative values for
hblank. Typecasting intermediate variable to higher precision.
Cc: Martin Bugge <marbugge@cisco.com>
Signed-off-by: Prashant Laddha <prladdha@cisco.com>
[hans.verkuil@cisco.com: made the denominator u32, since that's what div_u64 expects]
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Diffstat (limited to 'drivers/media/pci')
0 files changed, 0 insertions, 0 deletions