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:
2674c15
)
batman-adv: Remove vis info element in free_info
author
Sven Eckelmann
<
[email protected]
>
Fri, 28 Jan 2011 17:34:06 +0000
(18:34 +0100)
committer
Sven Eckelmann
<
[email protected]
>
Sun, 30 Jan 2011 09:32:06 +0000
(10:32 +0100)
The free_info function will be called when no reference to the info
object exists anymore. It must be ensured that the allocated memory
gets freed and not only the elements which are managed by the info
object.
Signed-off-by: Sven Eckelmann <
[email protected]
>
net/batman-adv/vis.c
patch
|
blob
|
history
diff --git
a/net/batman-adv/vis.c
b/net/batman-adv/vis.c
index 0be55beba054a6922a68de8f249f33d5bbfbe6b1..988296cdf7c5aca119efef6442400198b7b270bf 100644
(file)
--- a/
net/batman-adv/vis.c
+++ b/
net/batman-adv/vis.c
@@
-64,6
+64,7
@@
static void free_info(struct kref *ref)
spin_unlock_bh(&bat_priv->vis_list_lock);
kfree_skb(info->skb_packet);
+ kfree(info);
}
/* Compare two vis packets, used by the hashing algorithm */