]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: Fix double-put of vlan object
authorBen Hutchings <ben@decadent.org.uk>
Sun, 26 Jun 2016 09:16:11 +0000 (11:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 29 Jun 2016 08:01:47 +0000 (04:01 -0400)
commit64e96421ae2f6d5d5cd2f7c991e420aca57b793f
treeebe8f1176f94da4e7476d4b786ca01bc2972ad0c
parent708517c4b98bdd4db4c913243aa1c53abfb01d3b
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: 4e6de96cb59a ("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>
net/batman-adv/translation-table.c