Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net/mlx4: && vs & typo

Bitwise & was obviously intended here.

Fixes: 745d8ae4622c ("net/mlx4: Spoofcheck and zero MAC can't coexist")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Dan Carpenter and committed by
David S. Miller
b2d0fe35 4f3de46f

+1 -1
+1 -1
include/linux/mlx4/driver.h
··· 109 109 int i; 110 110 111 111 for (i = ETH_ALEN; i > 0; i--) { 112 - addr[i - 1] = mac && 0xFF; 112 + addr[i - 1] = mac & 0xFF; 113 113 mac >>= 8; 114 114 } 115 115 }