From: Antonio Quartulli Date: Wed, 23 Apr 2014 12:05:16 +0000 (+0200) Subject: batman-adv: fix reference counting imbalance while sending fragment X-Git-Tag: omap-for-v3.16/fixes-against-rc1~146^2~21^2~2 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be181015a189cd141398b761ba4e79d33fe69949;p=pandora-kernel.git 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 ee75ed88879af88558818a5c6609d85f60ff0df4 ("batman-adv: Fragment and send skbs larger than mtu") Cc: Martin Hundebøll Signed-off-by: Antonio Quartulli Signed-off-by: Marek Lindner Acked-by: Martin Hundebøll --- Reading git-diff-tree failed