batman-adv: free skb on TVLV parsing success
authorAntonio Quartulli <[email protected]>
Tue, 11 Feb 2014 16:05:07 +0000 (17:05 +0100)
committerAntonio Quartulli <[email protected]>
Mon, 17 Feb 2014 16:17:02 +0000 (17:17 +0100)
commit05c3c8a636aa9ee35ce13f65afc5b665615cc786
treefca2b8358133165a090d76f3f5c4872fbb75d2af
parenta30e22ca8464c2dc573e0144a972221c2f06c2cd
batman-adv: free skb on TVLV parsing success

When the TVLV parsing routine succeed the skb is left
untouched thus leading to a memory leak.

Fix this by consuming the skb in case of success.

Introduced by ef26157747d42254453f6b3ac2bd8bd3c53339c3
("batman-adv: tvlv - basic infrastructure")

Reported-by: Russel Senior <[email protected]>
Signed-off-by: Antonio Quartulli <[email protected]>
Tested-by: Russell Senior <[email protected]>
Signed-off-by: Marek Lindner <[email protected]>
net/batman-adv/routing.c