diff --git a/net/mac80211/cfg.c b/net/mac80211/cfg.c index e429dbb10df71d986448ad2d1361f94c5defc252..d46ed4cbe771757b48b15090d33a17a8d4b83096 100644 --- a/net/mac80211/cfg.c +++ b/net/mac80211/cfg.c @@ -1217,7 +1217,10 @@ static int ieee80211_start_ap(struct wiphy *wiphy, struct net_device *dev, return 0; error: + mutex_lock(&local->mtx); ieee80211_vif_release_channel(sdata); + mutex_unlock(&local->mtx); + return err; }