diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2018-02-06 11:49:04 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2018-02-26 08:08:46 -0500 |
commit | 07837433ca4d7cf1bfd27d4776956cc7a7bf921d (patch) | |
tree | 3d457dfc4ecea9142600e6305f8f54ca81f980dc /samples/bpf/xdp_rxq_info_kern.c | |
parent | a2603d1748fddaa44b70b027737ba077145f261c (diff) |
media: pci: cx88-input: use 64-bit arithmetic instead of 32-bit
Add suffix LL to constant 1000000 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 ktime_t (64 bits, signed).
The expression ir->polling * 1000000 is currently being evaluated
using 32-bit arithmetic.
Addresses-Coverity-ID: 1392628 ("Unintentional integer overflow")
Addresses-Coverity-ID: 1392630 ("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