Signed-off-by: Marek Lindner lindner_marek@yahoo.de --- batman-adv/hard-interface.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/batman-adv/hard-interface.c b/batman-adv/hard-interface.c index ec16dc9..afc2c3d 100644 --- a/batman-adv/hard-interface.c +++ b/batman-adv/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); }