The following commit has been merged in the master branch: commit f1cedd943286b25f5ea3cefaac478825fc69342b Author: Marek Lindner lindner_marek@yahoo.de Date: Tue Oct 12 09:47:48 2010 +0000
batman-adv: decrease refcount of hard-interface when it gets removed
This is a reggression introduced with revision 1820.
Signed-off-by: Marek Lindner lindner_marek@yahoo.de Acked-by: Sven Eckelmann sven.eckelmann@gmx.de
diff --git a/hard-interface.c b/hard-interface.c index ec16dc9..afc2c3d 100644 --- a/hard-interface.c +++ b/hard-interface.c @@ -44,6 +44,7 @@ static void hardif_free_rcu(struct rcu_head *rcu)
batman_if = container_of(rcu, struct batman_if, rcu); sysfs_del_hardif(&batman_if->hardif_obj); + dev_put(batman_if->net_dev); kref_put(&batman_if->refcount, hardif_free_ref); }