OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f3de46
)
net/mlx4: && vs & typo
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 28 Feb 2017 12:02:15 +0000
(15:02 +0300)
committer
David S. Miller
<davem@davemloft.net>
Wed, 1 Mar 2017 17:50:58 +0000
(09:50 -0800)
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>
include/linux/mlx4/driver.h
patch
|
blob
|
history
diff --git
a/include/linux/mlx4/driver.h
b/include/linux/mlx4/driver.h
index
e965e50
..
a858bcb
100644
(file)
--- a/
include/linux/mlx4/driver.h
+++ b/
include/linux/mlx4/driver.h
@@
-109,7
+109,7
@@
static inline void mlx4_u64_to_mac(u8 *addr, u64 mac)
int i;
for (i = ETH_ALEN; i > 0; i--) {
- addr[i - 1] = mac &
&
0xFF;
+ addr[i - 1] = mac & 0xFF;
mac >>= 8;
}
}