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>
This commit is contained in:
Dimitris Michailidis 2010-06-18 10:05:32 +00:00 committed by David S. Miller
parent 9be793bfa3
commit f68707b805
1 changed files with 4 additions and 3 deletions

View File

@ -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)