From patchwork Sun Oct 10 12:16:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 459 Return-Path: Received: from nm3-vm0.bullet.mail.ukl.yahoo.com (nm3-vm0.bullet.mail.ukl.yahoo.com [217.146.183.228]) by open-mesh.org (Postfix) with SMTP id 00AAB154556 for ; Sun, 10 Oct 2010 14:18:09 +0200 (CEST) Received: from [217.146.183.216] by nm3.bullet.mail.ukl.yahoo.com with NNFMP; 10 Oct 2010 12:18:08 -0000 Received: from [217.146.183.172] by tm9.bullet.mail.ukl.yahoo.com with NNFMP; 10 Oct 2010 12:18:08 -0000 Received: from [127.0.0.1] by omp1013.mail.ukl.yahoo.com with NNFMP; 10 Oct 2010 12:18:07 -0000 X-Yahoo-Newman-Id: 962927.25513.bm@omp1013.mail.ukl.yahoo.com Received: (qmail 51825 invoked from network); 10 Oct 2010 12:18:07 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.de; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Cc:Subject:Date:Message-Id:X-Mailer; b=RALt3XCnl8Updq9sI8iI430IV5RJf/YIVwX2aGkFnSQF8e+8MheRJlo04jfskW94eFn+PZiAh2IlyJC0MI5bS/Mt1flmfRzgCIRVd/LV4gr70FWHVJMe+qzFGptOfPdB7jWF407xzngO4fulAHve24IR+7T8O9Oa0QtBHORKrog= ; DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1286713087; bh=+KjE3aYYL+Rzt0i/kaDxw+6cnB/tHUfeGHgJuMwAqqM=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Cc:Subject:Date:Message-Id:X-Mailer; b=kUaFcTnRMGM4S5tXGshrHPJND+knGvKVNj3SdUKNAOVtzGGbnhECklliRa3aqzIPKZe6Lvwi1B6C4S5c42UV7loUCmassSD4QrJ8co44FoBFxJSJpudYYqv/z4yu3PNq0xtSugfEjpHN/6+YOrgOb1dBOXE1kG0oqiZPXYo2JXk= Received: from localhost (lindner_marek@78.225.40.81 with plain) by smtp125.mail.ukl.yahoo.com with SMTP; 10 Oct 2010 05:18:07 -0700 PDT X-Yahoo-SMTP: tW.h3tiswBBMXO2coYcbPigGD5Lt6zY_.Zc- X-YMail-OSG: wZp5_WgVM1lqm7.LyFNcFz88KI4V2TbKjWB9Jl96TaGX.tz dgtb0K.q2z11Q4Taf8P3lUOAZ006kzZk.79kZ6.nOnbD3B1PNkLGDMJOltis J6V6I31Vb31.9UkNRbqdw4tF1YpkqO.4V13YH0yn6K48VCji7INH6C3F_GnJ BsMLg90EXHWMuelsSPa9fAfnhFIe8NLoR.SvN_Z9OsSoy59hXf6rCTPCvHnl u61cMaCGAY77fYb3p3Rnf.ClZSwNhy2KtuXMoCK27 X-Yahoo-Newman-Property: ymail-3 From: Marek Lindner To: b.a.t.m.a.n@lists.open-mesh.org Date: Sun, 10 Oct 2010 14:16:34 +0200 Message-Id: <1286712994-30845-1-git-send-email-lindner_marek@yahoo.de> X-Mailer: git-send-email 1.7.1 Cc: Marek Lindner Subject: [B.A.T.M.A.N.] [PATCH 1/3] batman-adv: decrease refcount of hard-interface when it gets removed X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.11 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 10 Oct 2010 12:18:10 -0000 Signed-off-by: Marek Lindner Acked-by: Sven Eckelmann --- 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); }