projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9cb429d
)
team: init error value to 0 in team_netpoll_setup()
author
Jiri Pirko
<jiri@resnulli.us>
Tue, 24 Jul 2012 01:20:48 +0000
(
01:20
+0000)
committer
David S. Miller
<davem@davemloft.net>
Tue, 24 Jul 2012 20:54:15 +0000
(13:54 -0700)
This will ensure correct value is returned in case the port list is empty.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Reported-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/team/team.c
b/drivers/net/team/team.c
index b104c05225f7ea0964d3065b6789f945451d9c23..87707ab3943084821e1b7e5c5b9a201d51a944ba 100644
(file)
--- a/
drivers/net/team/team.c
+++ b/
drivers/net/team/team.c
@@
-1447,7
+1447,7
@@
static int team_netpoll_setup(struct net_device *dev,
{
struct team *team = netdev_priv(dev);
struct team_port *port;
- int err;
+ int err
= 0
;
mutex_lock(&team->lock);
list_for_each_entry(port, &team->port_list, list) {