From: Casey Leedom <leedom@chelsio.com>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, Casey Leedom <leedom@chelsio.com>
Subject: [PATCH net-26 5/6] cxgb4vf: Fail open if link_start() fails.
Date: Thu, 11 Nov 2010 11:06:52 -0800 [thread overview]
Message-ID: <1289502413-9895-6-git-send-email-leedom@chelsio.com> (raw)
In-Reply-To: <1289502413-9895-1-git-send-email-leedom@chelsio.com>
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(-)
diff --git a/drivers/net/cxgb4vf/cxgb4vf_main.c b/drivers/net/cxgb4vf/cxgb4vf_main.c
index 4487b1a..8da3bda 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;
}
--
1.7.0.4
next prev parent reply other threads:[~2010-11-11 19:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-11-11 19:06 [PATCH net-26 0/6] cxgb4vf: a number of bug fixes Casey Leedom
2010-11-11 19:06 ` [PATCH net-26 1/6] cxgb4vf: don't implement trivial (and incorrect) ndo_select_queue() Casey Leedom
2010-11-11 19:06 ` [PATCH net-26 2/6] cxgb4vf: fix bug in Generic Receive Offload Casey Leedom
2010-11-11 19:06 ` [PATCH net-26 3/6] cxgb4vf: fix some errors in Gather List to skb conversion Casey Leedom
2010-11-11 19:06 ` [PATCH net-26 4/6] cxgb4vf: flesh out PCI Device ID Table Casey Leedom
2010-11-11 19:06 ` Casey Leedom [this message]
2010-11-11 19:06 ` [PATCH net-26 6/6] cxgb4vf: add call to Firmware to reset VF State Casey Leedom
2010-11-12 20:27 ` [PATCH net-26 0/6] cxgb4vf: a number of bug fixes David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1289502413-9895-6-git-send-email-leedom@chelsio.com \
--to=leedom@chelsio.com \
--cc=davem@davemloft.net \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).