The following commit has been merged in the master branch: commit 7b8d4162bfab142120014a758900e2fda0046baa Author: Sven Eckelmann sven@narfation.org Date: Sat Jan 29 17:34:25 2011 +0000
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
diff --git a/vis.c b/vis.c index 2cdf01c..9d2729c 100644 --- a/vis.c +++ b/vis.c @@ -446,7 +446,7 @@ static struct vis_info *add_packet(struct bat_priv *bat_priv, info); if (hash_added < 0) { /* did not work (for some reason) */ - kref_put(&old_info->refcount, free_info); + kref_put(&info->refcount, free_info); info = NULL; }