mac80211: Reorder debugfs calls during netdev deinit
ieee80211_free_keys() must be called before ieee80211_debugfs_remove_netdev() in order to make sure that the possible default_key symlink is removed before attempting to remove the netdev debugfs directory. Signed-off-by: Jouni Malinen <jouni.malinen@atheros.com> Signed-off-by: Johannes Berg <johannes@sipsolutions.net> Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
parent
e50db65c0d
commit
aee14ceb52
|
@ -31,11 +31,11 @@ static void ieee80211_teardown_sdata(struct net_device *dev)
|
||||||
int flushed;
|
int flushed;
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
ieee80211_debugfs_remove_netdev(sdata);
|
|
||||||
|
|
||||||
/* free extra data */
|
/* free extra data */
|
||||||
ieee80211_free_keys(sdata);
|
ieee80211_free_keys(sdata);
|
||||||
|
|
||||||
|
ieee80211_debugfs_remove_netdev(sdata);
|
||||||
|
|
||||||
for (i = 0; i < IEEE80211_FRAGMENT_MAX; i++)
|
for (i = 0; i < IEEE80211_FRAGMENT_MAX; i++)
|
||||||
__skb_queue_purge(&sdata->fragments[i].skb_list);
|
__skb_queue_purge(&sdata->fragments[i].skb_list);
|
||||||
sdata->fragment_next = 0;
|
sdata->fragment_next = 0;
|
||||||
|
|
Loading…
Reference in New Issue