]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
mac80211: Reorder debugfs calls during netdev deinit
authorJouni Malinen <j@w1.fi>
Tue, 9 Sep 2008 14:33:15 +0000 (16:33 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 11 Sep 2008 19:53:40 +0000 (15:53 -0400)
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>
net/mac80211/iface.c

index 4a623b8e91fd532f4f5c5a44ce070ede32776219..672cec60a2fbe8173e259b5f27349e60d6859b0c 100644 (file)
@@ -31,11 +31,11 @@ static void ieee80211_teardown_sdata(struct net_device *dev)
        int flushed;
        int i;
 
-       ieee80211_debugfs_remove_netdev(sdata);
-
        /* free extra data */
        ieee80211_free_keys(sdata);
 
+       ieee80211_debugfs_remove_netdev(sdata);
+
        for (i = 0; i < IEEE80211_FRAGMENT_MAX; i++)
                __skb_queue_purge(&sdata->fragments[i].skb_list);
        sdata->fragment_next = 0;