diff options
author | Sven Eckelmann <sven@narfation.org> | 2011-01-28 18:34:06 +0100 |
---|---|---|
committer | Sven Eckelmann <sven@narfation.org> | 2011-01-30 10:32:06 +0100 |
commit | dda9fc6b2c59f056e7a2b313b8423b14a4df25a9 (patch) | |
tree | 0ad7d73e862e92d26b30b857f3ffa958f2637912 /net/batman-adv | |
parent | 2674c15870f888cb732a564fc504ce17654afc64 (diff) | |
download | blackbird-op-linux-dda9fc6b2c59f056e7a2b313b8423b14a4df25a9.tar.gz blackbird-op-linux-dda9fc6b2c59f056e7a2b313b8423b14a4df25a9.zip |
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>
Diffstat (limited to 'net/batman-adv')
-rw-r--r-- | net/batman-adv/vis.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/batman-adv/vis.c b/net/batman-adv/vis.c index 0be55beba054..988296cdf7c5 100644 --- 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 */ |