projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
515866f
)
ipvlan: plug memory leak in ipvlan_link_delete
author
Konstantin Khlebnikov
<
[email protected]
>
Tue, 14 Jul 2015 13:35:51 +0000
(16:35 +0300)
committer
David S. Miller
<
[email protected]
>
Thu, 16 Jul 2015 04:33:39 +0000
(21:33 -0700)
Add missing kfree_rcu(addr, rcu);
Signed-off-by: Konstantin Khlebnikov <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ipvlan/ipvlan_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ipvlan/ipvlan_main.c
b/drivers/net/ipvlan/ipvlan_main.c
index 048ecf0c76fb9e1ef72cfa3fd058ded92a56ec58..7d81e37c3f76dc3a2af5ba73e957cf5eeab0c7db 100644
(file)
--- 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);