summaryrefslogtreecommitdiff
path: root/drivers/net/team/team.c
diff options
context:
space:
mode:
authorJiri Pirko <jiri@resnulli.us>2013-06-10 19:42:24 +0400
committerDavid S. Miller <davem@davemloft.net>2013-06-12 14:05:54 +0400
commitd80b35beac78b52faad2359adf6a6b14e2725e51 (patch)
tree60f0677f96a44d8735a55bbeb64d7b5609605d08 /drivers/net/team/team.c
parent6c31ff366c1116823e77019bae3e92e9d77a49f4 (diff)
downloadlinux-d80b35beac78b52faad2359adf6a6b14e2725e51.tar.xz
team: use kfree_rcu instead of synchronize_rcu in team_port_dev
Signed-off-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/team/team.c')
-rw-r--r--drivers/net/team/team.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/net/team/team.c b/drivers/net/team/team.c
index 9cbe09df7765..488ed4f535e5 100644
--- a/drivers/net/team/team.c
+++ b/drivers/net/team/team.c
@@ -1192,8 +1192,7 @@ static int team_port_del(struct team *team, struct net_device *port_dev)
team_port_set_orig_dev_addr(port);
dev_set_mtu(port_dev, port->orig.mtu);
- synchronize_rcu();
- kfree(port);
+ kfree_rcu(port, rcu);
netdev_info(dev, "Port device %s removed\n", portname);
__team_compute_features(team);