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:
1448eb5
)
batman-adv: fix neigh_ifinfo imbalance
author
Simon Wunderlich
<
[email protected]
>
Wed, 26 Mar 2014 14:46:21 +0000
(15:46 +0100)
committer
Antonio Quartulli
<
[email protected]
>
Sat, 10 May 2014 08:58:42 +0000
(10:58 +0200)
The neigh_ifinfo object must be freed if it has been used in
batadv_iv_ogm_process_per_outif().
This is a regression introduced by
89652331c00f43574515059ecbf262d26d885717
("batman-adv: split tq information in neigh_node struct")
Reported-by: Antonio Quartulli <
[email protected]
>
Signed-off-by: Simon Wunderlich <
[email protected]
>
Signed-off-by: Marek Lindner <
[email protected]
>
Signed-off-by: Antonio Quartulli <
[email protected]
>
net/batman-adv/bat_iv_ogm.c
patch
|
blob
|
history
diff --git
a/net/batman-adv/bat_iv_ogm.c
b/net/batman-adv/bat_iv_ogm.c
index b3bd4ec3fd9452f0d1f9a99dd4782260ab65c818..f04224c32005aa9a732622805915fe9aead9ee3e 100644
(file)
--- a/
net/batman-adv/bat_iv_ogm.c
+++ b/
net/batman-adv/bat_iv_ogm.c
@@
-1545,6
+1545,8
@@
out_neigh:
if ((orig_neigh_node) && (!is_single_hop_neigh))
batadv_orig_node_free_ref(orig_neigh_node);
out:
+ if (router_ifinfo)
+ batadv_neigh_ifinfo_free_ref(router_ifinfo);
if (router)
batadv_neigh_node_free_ref(router);
if (router_router)