|
@@ -301,7 +301,7 @@ static void batadv_tt_local_size_mod(struct batadv_priv *bat_priv,
|
|
|
|
|
|
atomic_add(v, &vlan->tt.num_entries);
|
|
|
|
|
|
- batadv_softif_vlan_free_ref(vlan);
|
|
|
+ batadv_softif_vlan_put(vlan);
|
|
|
}
|
|
|
|
|
|
/**
|
|
@@ -688,7 +688,7 @@ bool batadv_tt_local_add(struct net_device *soft_iface, const u8 *addr,
|
|
|
if (unlikely(hash_added != 0)) {
|
|
|
/* remove the reference for the hash */
|
|
|
batadv_tt_local_entry_free_ref(tt_local);
|
|
|
- batadv_softif_vlan_free_ref(vlan);
|
|
|
+ batadv_softif_vlan_put(vlan);
|
|
|
goto out;
|
|
|
}
|
|
|
|
|
@@ -1054,7 +1054,7 @@ int batadv_tt_local_seq_print_text(struct seq_file *seq, void *offset)
|
|
|
no_purge ? 0 : last_seen_msecs,
|
|
|
vlan->tt.crc);
|
|
|
|
|
|
- batadv_softif_vlan_free_ref(vlan);
|
|
|
+ batadv_softif_vlan_put(vlan);
|
|
|
}
|
|
|
rcu_read_unlock();
|
|
|
}
|
|
@@ -1144,8 +1144,8 @@ u16 batadv_tt_local_remove(struct batadv_priv *bat_priv, const u8 *addr,
|
|
|
if (!vlan)
|
|
|
goto out;
|
|
|
|
|
|
- batadv_softif_vlan_free_ref(vlan);
|
|
|
- batadv_softif_vlan_free_ref(vlan);
|
|
|
+ batadv_softif_vlan_put(vlan);
|
|
|
+ batadv_softif_vlan_put(vlan);
|
|
|
|
|
|
out:
|
|
|
if (tt_local_entry)
|
|
@@ -1245,8 +1245,8 @@ static void batadv_tt_local_table_free(struct batadv_priv *bat_priv)
|
|
|
vlan = batadv_softif_vlan_get(bat_priv,
|
|
|
tt_common_entry->vid);
|
|
|
if (vlan) {
|
|
|
- batadv_softif_vlan_free_ref(vlan);
|
|
|
- batadv_softif_vlan_free_ref(vlan);
|
|
|
+ batadv_softif_vlan_put(vlan);
|
|
|
+ batadv_softif_vlan_put(vlan);
|
|
|
}
|
|
|
|
|
|
batadv_tt_local_entry_free_ref(tt_local);
|
|
@@ -3342,8 +3342,8 @@ static void batadv_tt_local_purge_pending_clients(struct batadv_priv *bat_priv)
|
|
|
/* decrease the reference held for this vlan */
|
|
|
vlan = batadv_softif_vlan_get(bat_priv, tt_common->vid);
|
|
|
if (vlan) {
|
|
|
- batadv_softif_vlan_free_ref(vlan);
|
|
|
- batadv_softif_vlan_free_ref(vlan);
|
|
|
+ batadv_softif_vlan_put(vlan);
|
|
|
+ batadv_softif_vlan_put(vlan);
|
|
|
}
|
|
|
|
|
|
batadv_tt_local_entry_free_ref(tt_local);
|
|
@@ -3429,7 +3429,7 @@ bool batadv_is_ap_isolated(struct batadv_priv *bat_priv, u8 *src, u8 *dst,
|
|
|
ret = true;
|
|
|
|
|
|
out:
|
|
|
- batadv_softif_vlan_free_ref(vlan);
|
|
|
+ batadv_softif_vlan_put(vlan);
|
|
|
if (tt_global_entry)
|
|
|
batadv_tt_global_entry_free_ref(tt_global_entry);
|
|
|
if (tt_local_entry)
|