diff options
-rw-r--r-- | drivers/scsi/fcoe/fcoe.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c index 481ba6f592ef..ac1df93de3d8 100644 --- a/drivers/scsi/fcoe/fcoe.c +++ b/drivers/scsi/fcoe/fcoe.c | |||
@@ -536,13 +536,11 @@ static void fcoe_update_src_mac(struct fc_lport *lport, u8 *addr) | |||
536 | struct fcoe_port *port = lport_priv(lport); | 536 | struct fcoe_port *port = lport_priv(lport); |
537 | struct fcoe_interface *fcoe = port->priv; | 537 | struct fcoe_interface *fcoe = port->priv; |
538 | 538 | ||
539 | rtnl_lock(); | ||
540 | if (!is_zero_ether_addr(port->data_src_addr)) | 539 | if (!is_zero_ether_addr(port->data_src_addr)) |
541 | dev_uc_del(fcoe->netdev, port->data_src_addr); | 540 | dev_uc_del(fcoe->netdev, port->data_src_addr); |
542 | if (!is_zero_ether_addr(addr)) | 541 | if (!is_zero_ether_addr(addr)) |
543 | dev_uc_add(fcoe->netdev, addr); | 542 | dev_uc_add(fcoe->netdev, addr); |
544 | memcpy(port->data_src_addr, addr, ETH_ALEN); | 543 | memcpy(port->data_src_addr, addr, ETH_ALEN); |
545 | rtnl_unlock(); | ||
546 | } | 544 | } |
547 | 545 | ||
548 | /** | 546 | /** |