]> git.baikalelectronics.ru Git - kernel.git/commit
batman-adv: fix reference counting imbalance while sending fragment
authorAntonio Quartulli <antonio@open-mesh.com>
Wed, 23 Apr 2014 12:05:16 +0000 (14:05 +0200)
committerAntonio Quartulli <antonio@meshcoding.com>
Thu, 15 May 2014 18:03:17 +0000 (20:03 +0200)
commit1415dccaa1fb450f0b930517d6c00f428cff86de
treeaf62d988abedf59273888c007c3fd03492e37b16
parent134e766ca638e6c09f22b1f3e8adbf9b562ea27c
batman-adv: fix reference counting imbalance while sending fragment

In the new fragmentation code the batadv_frag_send_packet()
function obtains a reference to the primary_if, but it does
not release it upon return.

This reference imbalance prevents the primary_if (and then
the related netdevice) to be properly released on shut down.

Fix this by releasing the primary_if in batadv_frag_send_packet().

Introduced by 4a2ab5ea470eddf0c052dad88b38fe4f57960e2c
("batman-adv: Fragment and send skbs larger than mtu")

Cc: Martin Hundebøll <martin@hundeboll.net>
Signed-off-by: Antonio Quartulli <antonio@open-mesh.com>
Signed-off-by: Marek Lindner <mareklindner@neomailbox.ch>
Acked-by: Martin Hundebøll <martin@hundeboll.net>
net/batman-adv/fragmentation.c