projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b6edf8
)
cxgb4vf: Fail open if link_start() fails.
author
Casey Leedom
<leedom@chelsio.com>
Thu, 11 Nov 2010 09:06:52 +0000
(09:06 +0000)
committer
David 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/cxgb4vf/cxgb4vf_main.c
b/drivers/net/cxgb4vf/cxgb4vf_main.c
index 4487b1ace660f168734fb910e7bce48287531e8f..8da3bda13f334bccd82f93f288e8c44f5d020282 100644
(file)
--- 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;
}