projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dd58ddc
)
batman-adv: Remove vis info on hashing errors
author
Sven Eckelmann
<sven@narfation.org>
Fri, 28 Jan 2011 17:34:05 +0000
(18:34 +0100)
committer
Sven Eckelmann
<sven@narfation.org>
Sun, 30 Jan 2011 09:32:02 +0000
(10:32 +0100)
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>
net/batman-adv/vis.c
patch
|
blob
|
blame
|
history
diff --git
a/net/batman-adv/vis.c
b/net/batman-adv/vis.c
index f69a3748f8ae4fc55e6099559aad29034159a582..0be55beba054a6922a68de8f249f33d5bbfbe6b1 100644
(file)
--- 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,
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;
}