Browse Source

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>
Casey Leedom 14 years ago
parent
commit
e7a3795f56
1 changed files with 3 additions and 1 deletions
  1. 3 1
      drivers/net/cxgb4vf/cxgb4vf_main.c

+ 3 - 1
drivers/net/cxgb4vf/cxgb4vf_main.c

@@ -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;
 }