Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 327603
b: refs/heads/master
c: 6244630
h: refs/heads/master
i:
  327601: d72c6df
  327599: 19958fc
v: v3
  • Loading branch information
Simon Wunderlich authored and Antonio Quartulli committed Aug 23, 2012
1 parent e9f3a42 commit 276b7c0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: a51fb9b2ac4eac86ff13c30620758b87f4f3f5ce
refs/heads/master: 624463079e0af455a2d70d2a59b9e2f6b5827aea
8 changes: 7 additions & 1 deletion trunk/net/batman-adv/hard-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,13 @@ int batadv_hardif_enable_interface(struct batadv_hard_iface *hard_iface,
hard_iface->if_num = bat_priv->num_ifaces;
bat_priv->num_ifaces++;
hard_iface->if_status = BATADV_IF_INACTIVE;
batadv_orig_hash_add_if(hard_iface, bat_priv->num_ifaces);
ret = batadv_orig_hash_add_if(hard_iface, bat_priv->num_ifaces);
if (ret < 0) {
bat_priv->bat_algo_ops->bat_iface_disable(hard_iface);
bat_priv->num_ifaces--;
hard_iface->if_status = BATADV_IF_NOT_IN_USE;
goto err_dev;
}

hard_iface->batman_adv_ptype.type = ethertype;
hard_iface->batman_adv_ptype.func = batadv_batman_skb_recv;
Expand Down

0 comments on commit 276b7c0

Please sign in to comment.