--- x/net/mac80211/debugfs_sta.c +++ y/net/mac80211/debugfs_sta.c @@ -1276,6 +1276,8 @@ void ieee80211_sta_debugfs_add(struct st void ieee80211_sta_debugfs_remove(struct sta_info *sta) { + if (!sta->debugfs_dir) + return; debugfs_remove_recursive(sta->debugfs_dir); sta->debugfs_dir = NULL; }