diff options
author | Jiri Pirko <jiri@resnulli.us> | 2012-07-24 01:20:48 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-07-24 13:54:15 -0700 |
commit | 3324d024ba4bebb74a78d84b925b59df73a92fbd (patch) | |
tree | f581c110d2698f4a15396b5ad50c25436f412966 | |
parent | 9cb429d692b341e972b12e6cd097364050ebbb26 (diff) |
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>
-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 b104c05225f..87707ab3943 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) { |