]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: free skb on TVLV parsing success
authorAntonio Quartulli <antonio@open-mesh.com>
Tue, 11 Feb 2014 16:05:07 +0000 (17:05 +0100)
committerAntonio Quartulli <antonio@meshcoding.com>
Mon, 17 Feb 2014 16:17:02 +0000 (17:17 +0100)
commit457f1e88ac77983bb71ecb2242804f6a78d0e1c3
treefca2b8358133165a090d76f3f5c4872fbb75d2af
parentc36ba7345be80e963492f7dd31fcf8b5edcb8f26
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 b1ab705f9111e0b4b3ffef4d1e3fdb4d657aa718
("batman-adv: tvlv - basic infrastructure")

Reported-by: Russel Senior <russell@personaltelco.net>
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Tested-by: Russell Senior <russell@personaltelco.net>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
net/batman-adv/routing.c