Patchwork [07/10] cxgb4vf: Fail open if link_start() fails.

login
register
mail settings
Submitter Casey Leedom
Date Nov. 11, 2010, 2:04 a.m.
Message ID <1289441052-4925-7-git-send-email-leedom@chelsio.com>
Download mbox | patch
Permalink /patch/70760/
State Changes Requested
Delegated to: David Miller
Headers show

Comments

Casey Leedom - Nov. 11, 2010, 2:04 a.m.
Fail open if link_start() fails.

Signed-off-by: Casey Leedom <leedom@chelsio.com>
---
 drivers/net/cxgb4vf/cxgb4vf_main.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

Patch

diff --git a/drivers/net/cxgb4vf/cxgb4vf_main.c b/drivers/net/cxgb4vf/cxgb4vf_main.c
index b5c0bff..2d09e83 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;
 }