The following commit has been merged in the master branch: commit 77978bceaddffc0569a8a091451625960b156683 Author: Sven Eckelmann sven@narfation.org Date: Sat Jan 29 17:36:46 2011 +0000
batman-adv: Remove vis info element in free_info
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 sven@narfation.org
diff --git a/vis.c b/vis.c index 9d2729c..584781e 100644 --- a/vis.c +++ b/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 */