cxgb4vf: Fail open if link_start() fails.
authorCasey Leedom <leedom@chelsio.com>
Thu, 11 Nov 2010 09:06:52 +0000 (09:06 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 12 Nov 2010 20:31:00 +0000 (12:31 -0800)
Fail open if link_start() fails.

Signed-off-by: Casey Leedom <leedom@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cxgb4vf/cxgb4vf_main.c

index 4487b1ace660f168734fb910e7bce48287531e8f..8da3bda13f334bccd82f93f288e8c44f5d020282 100644 (file)
@@ -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;
 }