Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 102733
b: refs/heads/master
c: bd9b448
h: refs/heads/master
i:
  102731: 04cbbdd
v: v3
  • Loading branch information
Pavel Emelyanov authored and John W. Linville committed May 22, 2008
1 parent b07cd85 commit 148ada2
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 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: a3538b19a6d226f9d3d9b18865468370009dec55
refs/heads/master: bd9b448f4c0a514559bdae4ca18ca3e8cd999c6d
15 changes: 9 additions & 6 deletions trunk/net/mac80211/mesh.c
Original file line number Diff line number Diff line change
Expand Up @@ -315,6 +315,13 @@ struct mesh_table *mesh_table_alloc(int size_order)
return newtbl;
}

static void __mesh_table_free(struct mesh_table *tbl)
{
kfree(tbl->hash_buckets);
kfree(tbl->hashwlock);
kfree(tbl);
}

void mesh_table_free(struct mesh_table *tbl, bool free_leafs)
{
struct hlist_head *mesh_hash;
Expand All @@ -330,9 +337,7 @@ void mesh_table_free(struct mesh_table *tbl, bool free_leafs)
}
spin_unlock(&tbl->hashwlock[i]);
}
kfree(tbl->hash_buckets);
kfree(tbl->hashwlock);
kfree(tbl);
__mesh_table_free(tbl);
}

static void ieee80211_mesh_path_timer(unsigned long data)
Expand Down Expand Up @@ -378,9 +383,7 @@ struct mesh_table *mesh_table_grow(struct mesh_table *tbl)
hlist_for_each_safe(p, q, &newtbl->hash_buckets[i])
tbl->free_node(p, 0);
}
kfree(newtbl->hash_buckets);
kfree(newtbl->hashwlock);
kfree(newtbl);
__mesh_table_free(tbl);
endgrow:
return NULL;
}
Expand Down

0 comments on commit 148ada2

Please sign in to comment.