aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/bnx2fc/bnx2fc_fcoe.c')
-rw-r--r--drivers/scsi/bnx2fc/bnx2fc_fcoe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
index 2c780a78fcbd..820a1840c3f7 100644
--- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
+++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c
@@ -673,7 +673,7 @@ static void bnx2fc_link_speed_update(struct fc_lport *lport)
673 struct net_device *netdev = interface->netdev; 673 struct net_device *netdev = interface->netdev;
674 struct ethtool_cmd ecmd; 674 struct ethtool_cmd ecmd;
675 675
676 if (!dev_ethtool_get_settings(netdev, &ecmd)) { 676 if (!__ethtool_get_settings(netdev, &ecmd)) {
677 lport->link_supported_speeds &= 677 lport->link_supported_speeds &=
678 ~(FC_PORTSPEED_1GBIT | FC_PORTSPEED_10GBIT); 678 ~(FC_PORTSPEED_1GBIT | FC_PORTSPEED_10GBIT);
679 if (ecmd.supported & (SUPPORTED_1000baseT_Half | 679 if (ecmd.supported & (SUPPORTED_1000baseT_Half |
@@ -1001,9 +1001,11 @@ static int bnx2fc_vport_create(struct fc_vport *vport, bool disabled)
1001 "this interface\n"); 1001 "this interface\n");
1002 return -EIO; 1002 return -EIO;
1003 } 1003 }
1004 rtnl_lock();
1004 mutex_lock(&bnx2fc_dev_lock); 1005 mutex_lock(&bnx2fc_dev_lock);
1005 vn_port = bnx2fc_if_create(interface, &vport->dev, 1); 1006 vn_port = bnx2fc_if_create(interface, &vport->dev, 1);
1006 mutex_unlock(&bnx2fc_dev_lock); 1007 mutex_unlock(&bnx2fc_dev_lock);
1008 rtnl_unlock();
1007 1009
1008 if (IS_ERR(vn_port)) { 1010 if (IS_ERR(vn_port)) {
1009 printk(KERN_ERR PFX "bnx2fc_vport_create (%s) failed\n", 1011 printk(KERN_ERR PFX "bnx2fc_vport_create (%s) failed\n",