diff options
author | Jiri Pirko <jiri@resnulli.us> | 2012-07-24 05:20:48 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-25 00:54:15 +0400 |
commit | 3324d024ba4bebb74a78d84b925b59df73a92fbd (patch) | |
tree | f581c110d2698f4a15396b5ad50c25436f412966 /drivers/net/team | |
parent | 9cb429d692b341e972b12e6cd097364050ebbb26 (diff) | |
download | linux-3324d024ba4bebb74a78d84b925b59df73a92fbd.tar.xz |
team: init error value to 0 in team_netpoll_setup()
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>
Diffstat (limited to 'drivers/net/team')
-rw-r--r-- | drivers/net/team/team.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c index b104c05225f7..87707ab39430 100644 --- 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) { |