Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless
Conflicts: drivers/net/wireless/rt2x00/rt2x00pci.c
This commit is contained in:
@@ -2641,7 +2641,7 @@ static int ieee80211_cancel_roc(struct ieee80211_local *local,
|
||||
list_del(&dep->list);
|
||||
mutex_unlock(&local->mtx);
|
||||
|
||||
ieee80211_roc_notify_destroy(dep);
|
||||
ieee80211_roc_notify_destroy(dep, true);
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -2681,7 +2681,7 @@ static int ieee80211_cancel_roc(struct ieee80211_local *local,
|
||||
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;
|
||||
@@ -2691,6 +2691,8 @@ static int ieee80211_cancel_roc(struct ieee80211_local *local,
|
||||
|
||||
/* work will clean up etc */
|
||||
flush_delayed_work(&found->work);
|
||||
WARN_ON(!found->to_be_freed);
|
||||
kfree(found);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user