aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/cxgb4
diff options
context:
space:
mode:
authorDimitris Michailidis <dm@chelsio.com>2010-06-18 06:05:32 -0400
committerDavid S. Miller <davem@davemloft.net>2010-06-19 01:08:37 -0400
commitf68707b805b7794bb7b208e327fbe0473c470d0b (patch)
treec9a109331e3077b9a047ea51af5d093b0913f9a7 /drivers/net/cxgb4
parent9be793bfa38436f9142de219b6eef4d8dfa96606 (diff)
cxgb4: propagate link initialization errors to .ndo_open's callers
Signed-off-by: Dimitris Michailidis <dm@chelsio.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/cxgb4')
-rw-r--r--drivers/net/cxgb4/cxgb4_main.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/net/cxgb4/cxgb4_main.c b/drivers/net/cxgb4/cxgb4_main.c
index 6bfe7d65ef17..eb1492f4df2d 100644
--- a/drivers/net/cxgb4/cxgb4_main.c
+++ b/drivers/net/cxgb4/cxgb4_main.c
@@ -2512,9 +2512,10 @@ static int cxgb_open(struct net_device *dev)
2512 } 2512 }
2513 2513
2514 dev->real_num_tx_queues = pi->nqsets; 2514 dev->real_num_tx_queues = pi->nqsets;
2515 link_start(dev); 2515 err = link_start(dev);
2516 netif_tx_start_all_queues(dev); 2516 if (!err)
2517 return 0; 2517 netif_tx_start_all_queues(dev);
2518 return err;
2518} 2519}
2519 2520
2520static int cxgb_close(struct net_device *dev) 2521static int cxgb_close(struct net_device *dev)