]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: release vlan object after checking the CRC
authorAntonio Quartulli <antonio@meshcoding.com>
Tue, 28 Jan 2014 01:06:47 +0000 (02:06 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Mon, 17 Feb 2014 16:17:00 +0000 (17:17 +0100)
commit56c1d1a1b82994bbe3a108687a2d76e3ab91bab9
treed5449f16cab7d66c710acbfe16d036282d41adfc
parentb5ea0bb5d7d25183dc4ae0107ea733d10a9dd284
batman-adv: release vlan object after checking the CRC

There is a refcounter unbalance in the CRC checking routine
invoked on OGM reception. A vlan object is retrieved (thus
its refcounter is increased by one) but it is never properly
released. This leads to a memleak because the vlan object
will never be free'd.

Fix this by releasing the vlan object after having read the
CRC.

Reported-by: Russell Senior <russell@personaltelco.net>
Reported-by: Daniel <daniel@makrotopia.org>
Reported-by: cmsv <cmsv@wirelesspt.net>
Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/translation-table.c