From: Casey Leedom Date: Thu, 11 Nov 2010 09:06:52 +0000 (+0000) Subject: cxgb4vf: Fail open if link_start() fails. X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e7a3795f56122cc92530c3f9412b8ff19b70184c;p=openwrt%2Fstaging%2Fblogic.git cxgb4vf: Fail open if link_start() fails. Fail open if link_start() fails. Signed-off-by: Casey Leedom Signed-off-by: David S. Miller --- diff --git a/drivers/net/cxgb4vf/cxgb4vf_main.c b/drivers/net/cxgb4vf/cxgb4vf_main.c index 4487b1ace660..8da3bda13f33 100644 --- a/drivers/net/cxgb4vf/cxgb4vf_main.c +++ b/drivers/net/cxgb4vf/cxgb4vf_main.c @@ -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; }