batman-adv: Remove vis info on hashing errors
[deliverable/linux.git] / net / batman-adv / vis.c
index f69a3748f8ae4fc55e6099559aad29034159a582..0be55beba054a6922a68de8f249f33d5bbfbe6b1 100644 (file)
@@ -444,7 +444,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;
        }
 
This page took 0.023924 seconds and 5 git commands to generate.