diff options
author | Yi Zou <yi.zou@intel.com> | 2009-07-29 20:03:50 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2009-08-22 18:52:02 -0400 |
commit | 7a7f0c7f7a0cbda062d1ff2ff1d3f99d0e41d2af (patch) | |
tree | 17b0355199016a642502e10af343b7bf41a5ea7b /drivers/scsi/fcoe | |
parent | 3c0d1d94aa516cad50274fe1aa9f745957b67a65 (diff) |
[SCSI] fcoe: Fix validation of mac address when checking for spma support
Fix this bug of validating the wrong mac address while checking for SAN MAC
address support from LLD as we should check ha->addr not ctlr.ctl_src_addr.
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@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/fcoe')
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 0a5609bb5817..b7dfc6ebed36 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -329,7 +329,7 @@ static int fcoe_netdev_config(struct fc_lport *lp, struct net_device *netdev) | |||
329 | rcu_read_lock(); | 329 | rcu_read_lock(); |
330 | for_each_dev_addr(netdev, ha) { | 330 | for_each_dev_addr(netdev, ha) { |
331 | if ((ha->type == NETDEV_HW_ADDR_T_SAN) && | 331 | if ((ha->type == NETDEV_HW_ADDR_T_SAN) && |
332 | (is_valid_ether_addr(fc->ctlr.ctl_src_addr))) { | 332 | (is_valid_ether_addr(ha->addr))) { |
333 | memcpy(fc->ctlr.ctl_src_addr, ha->addr, ETH_ALEN); | 333 | memcpy(fc->ctlr.ctl_src_addr, ha->addr, ETH_ALEN); |
334 | fc->ctlr.spma = 1; | 334 | fc->ctlr.spma = 1; |
335 | break; | 335 | break; |