cxgb4vf: Fail open if link_start() fails.
Fail open if link_start() fails. Signed-off-by: Casey Leedom <leedom@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8b6edf878a
commit
e7a3795f56
1 changed files with 3 additions and 1 deletions
|
@ -753,7 +753,9 @@ static int cxgb4vf_open(struct net_device *dev)
|
|||
if (err)
|
||||
return err;
|
||||
set_bit(pi->port_id, &adapter->open_device_map);
|
||||
link_start(dev);
|
||||
err = link_start(dev);
|
||||
if (err)
|
||||
return err;
|
||||
netif_tx_start_all_queues(dev);
|
||||
return 0;
|
||||
}
|
||||
|
|
Reference in a new issue