net/bnxt: fix bit shift size
authorJohn W. Linville <linville@tuxdriver.com>
Thu, 29 Sep 2016 17:39:36 +0000 (13:39 -0400)
committerBruce Richardson <bruce.richardson@intel.com>
Thu, 13 Oct 2016 13:30:59 +0000 (15:30 +0200)
commita8c778f401fad2fa2a6c7c95e1d275611ecdf762
treea1222d88cdf1c98f620b258e38cc32c782cbc2c1
parent4f728369bc943985c7d370b626999d6d6d191c4e
net/bnxt: fix bit shift size

Some(?) compilers will treat the unmarked constant 1 as a 32-bit
integer, but the shift operation is in a loop that could run up to
63 times -- undefined behavior!

Coverity issue: 127546
Fixes: 778b759ba10e ("net/bnxt: add MAC address")

Signed-off-by: John W. Linville <linville@tuxdriver.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
drivers/net/bnxt/bnxt_ethdev.c