aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorSven Eckelmann <sven@narfation.org>2011-01-28 12:34:05 -0500
committerSven Eckelmann <sven@narfation.org>2011-01-30 04:32:02 -0500
commit2674c15870f888cb732a564fc504ce17654afc64 (patch)
tree98ae97713077307ee1f56ec5de362b53f8e3186d /net
parentdd58ddc6928f711d8fb7101182215a0f23cf41f1 (diff)
batman-adv: Remove vis info on hashing errors
A newly created vis info object must be removed when it couldn't be added to the hash. The old_info which has to be replaced was already removed and isn't related to the hash anymore. Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net')
-rw-r--r--net/batman-adv/vis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/vis.c b/net/batman-adv/vis.c
index f69a3748f8ae..0be55beba054 100644
--- a/net/batman-adv/vis.c
+++ b/net/batman-adv/vis.c
@@ -444,7 +444,7 @@ static struct vis_info *add_packet(struct bat_priv *bat_priv,
444 info); 444 info);
445 if (hash_added < 0) { 445 if (hash_added < 0) {
446 /* did not work (for some reason) */ 446 /* did not work (for some reason) */
447 kref_put(&old_info->refcount, free_info); 447 kref_put(&info->refcount, free_info);
448 info = NULL; 448 info = NULL;
449 } 449 }
450 450