Skip to content

Commit

Permalink
batman-adv: check skb preparation return value
Browse files Browse the repository at this point in the history
Fix bogus merge conflict resolution by checking the return
values of the skb preparation routines.

Signed-off-by: Antonio Quartulli <antonio@meshcoding.com>
  • Loading branch information
Antonio Quartulli committed Oct 19, 2013
1 parent b1eda2a commit 33faa04
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions net/batman-adv/send.c
Original file line number Diff line number Diff line change
Expand Up @@ -267,11 +267,14 @@ int batadv_send_skb_generic_unicast(struct batadv_priv *bat_priv,

switch (packet_type) {
case BATADV_UNICAST:
batadv_send_skb_prepare_unicast(skb, orig_node);
if (!batadv_send_skb_prepare_unicast(skb, orig_node))
goto out;
break;
case BATADV_UNICAST_4ADDR:
batadv_send_skb_prepare_unicast_4addr(bat_priv, skb, orig_node,
packet_subtype);
if (!batadv_send_skb_prepare_unicast_4addr(bat_priv, skb,
orig_node,
packet_subtype))
goto out;
break;
default:
/* this function supports UNICAST and UNICAST_4ADDR only. It
Expand Down

0 comments on commit 33faa04

Please sign in to comment.