net/vmxnet3: fix unintentional integer overflow
authorSebastian Basierski <sebastianx.basierski@intel.com>
Tue, 19 Sep 2017 11:47:58 +0000 (13:47 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 6 Oct 2017 00:49:49 +0000 (02:49 +0200)
commite8c1642a3ce7517d8c974ed16446d5fc2c917e39
treef4a5fbc18b578ef8b9cc2691ad1305a7954b9d97
parentd8f759a0ea03f8258db2b8e7fad3c7dffc8a9c39
net/vmxnet3: fix unintentional integer overflow

Fixed overflow by casting txq->cmd_ring.next2fill to uint64_t type.

Coverity issue: 143457

Fixes: 01fef6e3c181 ("net/vmxnet3: allow variable length Tx data ring")
Cc: stable@dpdk.org
Signed-off-by: Sebastian Basierski <sebastianx.basierski@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/vmxnet3/vmxnet3_rxtx.c