From: Dimitris Michailidis Date: Fri, 18 Jun 2010 10:05:32 +0000 (+0000) Subject: cxgb4: propagate link initialization errors to .ndo_open's callers X-Git-Tag: firefly_0821_release~9833^2~1306^2~534 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f68707b805b7794bb7b208e327fbe0473c470d0b;p=firefly-linux-kernel-4.4.55.git cxgb4: propagate link initialization errors to .ndo_open's callers Signed-off-by: Dimitris Michailidis Signed-off-by: David S. Miller --- 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) } dev->real_num_tx_queues = pi->nqsets; - link_start(dev); - netif_tx_start_all_queues(dev); - return 0; + err = link_start(dev); + if (!err) + netif_tx_start_all_queues(dev); + return err; } static int cxgb_close(struct net_device *dev)