|
@@ -650,8 +650,10 @@ bool batadv_tt_local_add(struct net_device *soft_iface, const u8 *addr,
|
|
|
|
|
|
/* increase the refcounter of the related vlan */
|
|
|
vlan = batadv_softif_vlan_get(bat_priv, vid);
|
|
|
- if (WARN(!vlan, "adding TT local entry %pM to non-existent VLAN %d",
|
|
|
- addr, BATADV_PRINT_VID(vid))) {
|
|
|
+ if (!vlan) {
|
|
|
+ net_ratelimited_function(batadv_info, soft_iface,
|
|
|
+ "adding TT local entry %pM to non-existent VLAN %d\n",
|
|
|
+ addr, BATADV_PRINT_VID(vid));
|
|
|
kfree(tt_local);
|
|
|
tt_local = NULL;
|
|
|
goto out;
|