aboutsummaryrefslogtreecommitdiffstats
path: root/net/mac80211/mesh_pathtbl.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/mac80211/mesh_pathtbl.c')
-rw-r--r--net/mac80211/mesh_pathtbl.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/mac80211/mesh_pathtbl.c b/net/mac80211/mesh_pathtbl.c
index 0b6c4bfe3e78..512bfa112c6a 100644
--- a/net/mac80211/mesh_pathtbl.c
+++ b/net/mac80211/mesh_pathtbl.c
@@ -463,7 +463,7 @@ static void mesh_path_node_free(struct hlist_node *p, bool free_leafs)
463 kfree(node); 463 kfree(node);
464} 464}
465 465
466static void mesh_path_node_copy(struct hlist_node *p, struct mesh_table *newtbl) 466static int mesh_path_node_copy(struct hlist_node *p, struct mesh_table *newtbl)
467{ 467{
468 struct mesh_path *mpath; 468 struct mesh_path *mpath;
469 struct mpath_node *node, *new_node; 469 struct mpath_node *node, *new_node;
@@ -476,6 +476,7 @@ static void mesh_path_node_copy(struct hlist_node *p, struct mesh_table *newtbl)
476 hash_idx = mesh_table_hash(mpath->dst, mpath->dev, newtbl); 476 hash_idx = mesh_table_hash(mpath->dst, mpath->dev, newtbl);
477 hlist_add_head(&new_node->list, 477 hlist_add_head(&new_node->list,
478 &newtbl->hash_buckets[hash_idx]); 478 &newtbl->hash_buckets[hash_idx]);
479 return 0;
479} 480}
480 481
481int mesh_pathtbl_init(void) 482int mesh_pathtbl_init(void)