net/bnxt: fix data type for vnic attributes entry size
authorAjit Khaparde <ajit.khaparde@broadcom.com>
Mon, 7 Nov 2016 15:12:04 +0000 (09:12 -0600)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Nov 2016 18:36:17 +0000 (19:36 +0100)
commitf87731e05938d2dbaf17eaf0186f4b61d6aba4ab
treeb057eb0fb4ff0f48cacc05d299acbb407510c1fa
parentc0b026525d0fa65dd41acb93c08d5dd6706f86e3
net/bnxt: fix data type for vnic attributes entry size

Prevent the arithmetic in bnxt_alloc_vnic_attributes from causing
any unintentional havoc because of the usage of a signed variable.

Coverity issue: 137874

Signed-off-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_vnic.c