diff options
author | Konstantin Khlebnikov <khlebnikov@yandex-team.ru> | 2015-07-14 15:35:51 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-07-16 06:33:39 +0200 |
commit | 6a725497318545aae246232ed05a8df9cffb0a02 (patch) | |
tree | 7e168e91751174907b044d82c78089d80f9dd2cb /drivers/net/ipvlan | |
parent | ipvlan: remove counters of ipv4 and ipv6 addresses (diff) | |
download | linux-6a725497318545aae246232ed05a8df9cffb0a02.tar.xz linux-6a725497318545aae246232ed05a8df9cffb0a02.zip |
ipvlan: plug memory leak in ipvlan_link_delete
Add missing kfree_rcu(addr, rcu);
Signed-off-by: Konstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ipvlan')
-rw-r--r-- | drivers/net/ipvlan/ipvlan_main.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ipvlan/ipvlan_main.c b/drivers/net/ipvlan/ipvlan_main.c index 048ecf0c76fb..7d81e37c3f76 100644 --- a/drivers/net/ipvlan/ipvlan_main.c +++ b/drivers/net/ipvlan/ipvlan_main.c @@ -507,6 +507,7 @@ static void ipvlan_link_delete(struct net_device *dev, struct list_head *head) list_for_each_entry_safe(addr, next, &ipvlan->addrs, anode) { ipvlan_ht_addr_del(addr, !dev->dismantle); list_del(&addr->anode); + kfree_rcu(addr, rcu); } list_del_rcu(&ipvlan->pnode); |