raw/ifpga: fix unintentional integer overflow
authorAndy Pei <andy.pei@intel.com>
Wed, 22 May 2019 06:36:34 +0000 (14:36 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 4 Jul 2019 13:49:59 +0000 (15:49 +0200)
commit79f52bff01d0fbbcbb2467bddbdda164d2bad7d4
tree3da3669459dbbf7610dc86660f1b83d9d586ae14
parent12f92a513a13bc8afd567016611c30271237b34f
raw/ifpga: fix unintentional integer overflow

cast unsigned int ports_per_retimer, unsigned int nums_retimer,
unsigned int nums_fvl and unsigned int ports_per_fvl to uint64_t
before multiply operation, to avoid Unintentional integer overflow.

Coverity issue: 337924, 337926
Fixes: d1cd4eb2d48e ("raw/ifpga: support ipn3ke")
Cc: stable@dpdk.org
Signed-off-by: Andy Pei <andy.pei@intel.com>
Acked-by: Rosen Xu <rosen.xu@intel.com>
drivers/raw/ifpga_rawdev/ifpga_rawdev.c