]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
cxgb4: propagate link initialization errors to .ndo_open's callers
authorDimitris Michailidis <dm@chelsio.com>
Fri, 18 Jun 2010 10:05:32 +0000 (10:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sat, 19 Jun 2010 05:08:37 +0000 (22:08 -0700)
Signed-off-by: Dimitris Michailidis <dm@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4/cxgb4_main.c

index 6bfe7d65ef17faffe0e7b4b2da36b945cccd8baf..eb1492f4df2daaa65e4a9a3d2023ff7e0b9509c8 100644 (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)