Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6a725497 authored by Konstantin Khlebnikov's avatar Konstantin Khlebnikov Committed by David S. Miller
Browse files

ipvlan: plug memory leak in ipvlan_link_delete



Add missing kfree_rcu(addr, rcu);

Signed-off-by: default avatarKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 515866f8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);