aboutsummaryrefslogtreecommitdiffstats
path: root/net/batman-adv
diff options
context:
space:
mode:
authorMarek Lindner <lindner_marek@yahoo.de>2011-05-14 14:01:22 -0400
committerSven Eckelmann <sven@narfation.org>2011-05-14 18:02:06 -0400
commitca06c6eb9a31ae782e74596231fb23df4fc5e46d (patch)
treee0cbfa74c263b8ba653a762bdf571ef7f43effef /net/batman-adv
parent6d5808d4ae1b0851c3b732d9ec2860d5f7804294 (diff)
batman-adv: reset broadcast flood protection on error
The broadcast flood protection should be reset to its original value if the primary interface could not be retrieved. Signed-off-by: Marek Lindner <lindner_marek@yahoo.de> Signed-off-by: Sven Eckelmann <sven@narfation.org>
Diffstat (limited to 'net/batman-adv')
-rw-r--r--net/batman-adv/send.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/batman-adv/send.c b/net/batman-adv/send.c
index 76daa46efe19..33779278f1b2 100644
--- a/net/batman-adv/send.c
+++ b/net/batman-adv/send.c
@@ -421,7 +421,7 @@ int add_bcast_packet_to_list(struct bat_priv *bat_priv, struct sk_buff *skb)
421 421
422 primary_if = primary_if_get_selected(bat_priv); 422 primary_if = primary_if_get_selected(bat_priv);
423 if (!primary_if) 423 if (!primary_if)
424 goto out; 424 goto out_and_inc;
425 425
426 forw_packet = kmalloc(sizeof(struct forw_packet), GFP_ATOMIC); 426 forw_packet = kmalloc(sizeof(struct forw_packet), GFP_ATOMIC);
427 427