diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c
index 15d886c639e9d92d9024d0fbf13a804301d819c4..30fb87f4275fffae4dc9b2307aac29097a5fb31d 100644 (file)
--- a/net/mac80211/cfg.c
+++ b/net/mac80211/cfg.c
list_del(&dep->list);
mutex_unlock(&local->mtx);
- ieee80211_roc_notify_destroy(dep);
+ ieee80211_roc_notify_destroy(dep, true);
return 0;
}
ieee80211_start_next_roc(local);
mutex_unlock(&local->mtx);
- ieee80211_roc_notify_destroy(found);
+ ieee80211_roc_notify_destroy(found, true);
} else {
/* work may be pending so use it all the time */
found->abort = true;
/* work will clean up etc */
flush_delayed_work(&found->work);
+ WARN_ON(!found->to_be_freed);
+ kfree(found);
}
return 0;