From patchwork Sat May 14 18:01:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Lindner X-Patchwork-Id: 973 Return-Path: Received: from nm19.bullet.mail.ukl.yahoo.com (nm19.bullet.mail.ukl.yahoo.com [217.146.183.193]) by open-mesh.org (Postfix) with SMTP id 19EC2154105 for ; Sat, 14 May 2011 20:02:30 +0200 (CEST) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@yahoo.de; dkim-adsp=none Received: from [217.146.183.209] by nm19.bullet.mail.ukl.yahoo.com with NNFMP; 14 May 2011 18:02:29 -0000 Received: from [77.238.184.80] by tm2.bullet.mail.ukl.yahoo.com with NNFMP; 14 May 2011 18:02:29 -0000 Received: from [127.0.0.1] by smtp149.mail.ukl.yahoo.com with NNFMP; 14 May 2011 18:02:29 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s1024; t=1305396149; bh=uY5pznhnaIDWItcKo/P6kEY7vQVQFdmDQ5AUVCSPkds=; h=X-Yahoo-Newman-Id:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:From:To:Cc:Subject:Date:Message-Id:X-Mailer; b=zJemX1G1oyhvTpKBBNDtrE6Hz+2oG1VRmTMlIaLcpwQk07zD/rjg20I1VWlZP61rFNsOgO2JhXxE5kbOzdvvTgkrc0qJHL19qi4ONf489gkjyDzLSydfDf6y2oLvZ7EE74ZpZ/Z7cMxt+wnV/gn4pgBa8ksucWZRvRA4dvGh4ZQ= X-Yahoo-Newman-Id: 402451.59197.bm@smtp149.mail.ukl.yahoo.com Received: from localhost (lindner_marek@78.46.248.235 with plain) by smtp149.mail.ukl.yahoo.com with SMTP; 14 May 2011 18:02:27 +0000 GMT X-Yahoo-SMTP: tW.h3tiswBBMXO2coYcbPigGD5Lt6zY_.Zc- X-YMail-OSG: 0rPC4LIVM1lkC3ZObTMtoIzICNDBuJl6T8n4IClq2fd4i30 KMXeC1n44LAzA_3izqZDK5RRetxcCPGTL_GiTJG_qUXG_6xA06kTi3xoxbl5 X5S5SVTMnSi.AoooO1u8lcASNdqmOHJEjrLyO7xCD9qKhvam9bigB0invnf7 qob.2Qo1y6tfI.c7Y5pG7H_52IgCNNDsIfbAiqR5H6N7q14YS7f5ysZDSiT8 vD4kPbCm3UKoO0a2v5Jv2Tqvj94PA27XSDx21av4jL.OkPiU25lJPFBB2Xu0 lLFj3mfzPeQSse8fzbJYRyfcHCEqb.BVciAhRAW8auePsyiTJKnVnv1SmZk_ obEHotQ-- X-Yahoo-Newman-Property: ymail-3 From: Marek Lindner To: b.a.t.m.a.n@lists.open-mesh.org Date: Sat, 14 May 2011 20:01:22 +0200 Message-Id: <1305396082-30309-1-git-send-email-lindner_marek@yahoo.de> X-Mailer: git-send-email 1.7.2.3 Cc: Marek Lindner Subject: [B.A.T.M.A.N.] [PATCH] batman-adv: reset broadcast flood protection on error X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 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: Sat, 14 May 2011 18:02:30 -0000 The broadcast flood protection should be reset to its original value if the primary interface could not be retrieved. Signed-off-by: Marek Lindner Acked-by: Sven Eckelmann --- send.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/send.c b/send.c index 76daa46..3377927 100644 --- a/send.c +++ b/send.c @@ -421,7 +421,7 @@ int add_bcast_packet_to_list(struct bat_priv *bat_priv, struct sk_buff *skb) primary_if = primary_if_get_selected(bat_priv); if (!primary_if) - goto out; + goto out_and_inc; forw_packet = kmalloc(sizeof(struct forw_packet), GFP_ATOMIC);