diff options
author | Jiri Pirko <jiri@resnulli.us> | 2013-06-10 17:42:24 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-06-12 03:05:54 -0700 |
commit | d80b35beac78b52faad2359adf6a6b14e2725e51 (patch) | |
tree | 60f0677f96a44d8735a55bbeb64d7b5609605d08 /drivers/net/team/team.c | |
parent | 6c31ff366c1116823e77019bae3e92e9d77a49f4 (diff) | |
download | linux-d80b35beac78b52faad2359adf6a6b14e2725e51.tar.gz linux-d80b35beac78b52faad2359adf6a6b14e2725e51.tar.bz2 linux-d80b35beac78b52faad2359adf6a6b14e2725e51.zip |
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.c | 3 |
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); |