Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 375525
b: refs/heads/master
c: a436186
h: refs/heads/master
i:
  375523: e94e59a
v: v3
  • Loading branch information
Antonio Quartulli committed May 9, 2013
1 parent dd043b1 commit 0d20924
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 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: 88e48d7b3340ef07b108eb8a8b3813dd093cc7f7
refs/heads/master: a4361860351e87876aebd9595906d928ce8572c6
16 changes: 12 additions & 4 deletions trunk/net/batman-adv/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,22 @@ void batadv_mesh_free(struct net_device *soft_iface)
batadv_vis_quit(bat_priv);

batadv_gw_node_purge(bat_priv);
batadv_originator_free(bat_priv);
batadv_nc_free(bat_priv);
batadv_dat_free(bat_priv);
batadv_bla_free(bat_priv);

/* Free the TT and the originator tables only after having terminated
* all the other depending components which may use these structures for
* their purposes.
*/
batadv_tt_free(bat_priv);

batadv_bla_free(bat_priv);

batadv_dat_free(bat_priv);
/* Since the originator table clean up routine is accessing the TT
* tables as well, it has to be invoked after the TT tables have been
* freed and marked as empty. This ensures that no cleanup RCU callbacks
* accessing the TT data are scheduled for later execution.
*/
batadv_originator_free(bat_priv);

free_percpu(bat_priv->bat_counters);

Expand Down

0 comments on commit 0d20924

Please sign in to comment.