提交 6a725497 编写于 作者: K Konstantin Khlebnikov 提交者: David S. Miller

ipvlan: plug memory leak in ipvlan_link_delete

Add missing kfree_rcu(addr, rcu);
Signed-off-by: NKonstantin Khlebnikov <khlebnikov@yandex-team.ru>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 515866f8
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册