Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 171372
b: refs/heads/master
c: 6d3560d
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Nov 2, 2009
1 parent 4dc7b87 commit bd00abc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1933ac4d9377ed44caba45abe1531ec1bc14bb63
refs/heads/master: 6d3560d4fc9c5b9fe1a07a63926ea70512c69c32
12 changes: 8 additions & 4 deletions trunk/net/mac80211/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -288,10 +288,14 @@ void ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted)

mutex_lock(&local->scan_mtx);

if (WARN_ON(!local->scanning)) {
mutex_unlock(&local->scan_mtx);
return;
}
/*
* It's ok to abort a not-yet-running scan (that
* we have one at all will be verified by checking
* local->scan_req next), but not to complete it
* successfully.
*/
if (WARN_ON(!local->scanning && !aborted))
aborted = true;

if (WARN_ON(!local->scan_req)) {
mutex_unlock(&local->scan_mtx);
Expand Down

0 comments on commit bd00abc

Please sign in to comment.