diff options
author | Ben Hutchings <ben@decadent.org.uk> | 2016-06-26 09:16:11 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-06-29 08:01:47 (GMT) |
commit | baceced93274ff2f846eae991664f9094425ffa8 (patch) | |
tree | ebe8f1176f94da4e7476d4b786ca01bc2972ad0c /net/batman-adv | |
parent | 9c4604a298e0a9807eaf2cd912d1ebf24d98fbeb (diff) | |
download | linux-baceced93274ff2f846eae991664f9094425ffa8.tar.xz |
batman-adv: Fix double-put of vlan object
Each batadv_tt_local_entry hold a single reference to a
batadv_softif_vlan. In case a new entry cannot be added to the hash
table, the error path puts the reference, but the reference will also
now be dropped by batadv_tt_local_entry_release().
Fixes: a33d970d0b54 ("batman-adv: Fix reference counting of vlan object for tt_local_entry")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Signed-off-by: Sven Eckelmann <sven@narfation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/batman-adv')
-rw-r--r-- | net/batman-adv/translation-table.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/batman-adv/translation-table.c b/net/batman-adv/translation-table.c index cfb5ccd..57ec87f 100644 --- a/net/batman-adv/translation-table.c +++ b/net/batman-adv/translation-table.c @@ -693,7 +693,6 @@ bool batadv_tt_local_add(struct net_device *soft_iface, const u8 *addr, if (unlikely(hash_added != 0)) { /* remove the reference for the hash */ batadv_tt_local_entry_put(tt_local); - batadv_softif_vlan_put(vlan); goto out; } |