aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCasey Leedom <leedom@chelsio.com>2010-11-11 09:06:52 +0000
committerDavid S. Miller <davem@davemloft.net>2010-11-12 12:31:00 -0800
commite7a3795f56122cc92530c3f9412b8ff19b70184c (patch)
tree90c323fb97a4f6d9fc579ee1f475bca411b0c8d8
parent8b6edf878a28979df6057cf414c51ab39bc3cc6f (diff)
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>
-rw-r--r--drivers/net/cxgb4vf/cxgb4vf_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/cxgb4vf/cxgb4vf_main.c b/drivers/net/cxgb4vf/cxgb4vf_main.c
index 4487b1ace66..8da3bda13f3 100644
--- a/drivers/net/cxgb4vf/cxgb4vf_main.c
+++ b/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;
}