roc is destroyed then roc->started is referenced. Keep a local cache.
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
                container_of(work, struct ieee80211_roc_work, work.work);
        struct ieee80211_sub_if_data *sdata = roc->sdata;
        struct ieee80211_local *local = sdata->local;
+       bool started;
 
        mutex_lock(&local->mtx);
 
                /* finish this ROC */
  finish:
                list_del(&roc->list);
+               started = roc->started;
                ieee80211_roc_notify_destroy(roc);
 
-               if (roc->started) {
+               if (started) {
                        drv_flush(local, false);
 
                        local->tmp_channel = NULL;
 
                ieee80211_recalc_idle(local);
 
-               if (roc->started)
+               if (started)
                        ieee80211_start_next_roc(local);
        }