diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-02-06 11:47:37 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-02-26 08:08:15 -0500 |
commit | a2603d1748fddaa44b70b027737ba077145f261c (patch) | |
tree | d2f6ca113bb90c39b2db24fb06c801d4799231c4 /samples/bpf/xdp_rxq_info_kern.c | |
parent | 91e0c0c1b05230d703395965d4bf298705819641 (diff) |
media: i2c: max2175: use 64-bit arithmetic instead of 32-bit
Add suffix LL to constant 2 in order to give the compiler complete
information about the proper arithmetic to use. Notice that this
constant is used in a context that expects an expression of type
s64 (64 bits, signed).
The expression 2 * (clock_rate - abs_nco_freq) is currently being
evaluated using 32-bit arithmetic.
Addresses-Coverity-ID: 1446589 ("Unintentional integer overflow")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'samples/bpf/xdp_rxq_info_kern.c')
0 files changed, 0 insertions, 0 deletions