mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 04:10:18 +09:00
fcoe: Fix checking san mac address
commitbf361707c8upstream. This was fixed before in7a7f0c7but it's introduced again recently. Signed-off-by: Yi Zou <yi.zou@intel.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
e166cb138d
commit
1ce03481ed
@@ -176,7 +176,7 @@ static int fcoe_interface_setup(struct fcoe_interface *fcoe,
|
||||
rcu_read_lock();
|
||||
for_each_dev_addr(netdev, ha) {
|
||||
if ((ha->type == NETDEV_HW_ADDR_T_SAN) &&
|
||||
(is_valid_ether_addr(fip->ctl_src_addr))) {
|
||||
(is_valid_ether_addr(ha->addr))) {
|
||||
memcpy(fip->ctl_src_addr, ha->addr, ETH_ALEN);
|
||||
fip->spma = 1;
|
||||
break;
|
||||
|
||||
Reference in New Issue
Block a user