From: Antonio Quartulli Date: Tue, 28 Jan 2014 01:06:47 +0000 (+0100) Subject: batman-adv: release vlan object after checking the CRC X-Git-Tag: v3.14-rc4~30^2~7^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91c2b1a9f680ff105369d49abc7e19ca7efb33e1;p=pandora-kernel.git 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 Reported-by: Daniel Reported-by: cmsv Signed-off-by: Antonio Quartulli Signed-off-by: Marek Lindner --- Reading git-diff-tree failed