mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 17:30:02 +00:00
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>
This commit is contained in:
parent
515866f818
commit
6a72549731
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue