Skip to content

Commit

Permalink
batman-adv: reset broadcast flood protection on error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Marek Lindner authored and Sven Eckelmann committed May 14, 2011
1 parent 6d5808d commit ca06c6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/batman-adv/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit ca06c6e

Please sign in to comment.