Fix lock context imbalance in ap_end() found by sparse
authorproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Fri, 5 Oct 2007 17:01:13 +0000 (17:01 +0000)
committerproski <proski@0192ed92-7a03-0410-a25b-9323aeb14dbd>
Fri, 5 Oct 2007 17:01:13 +0000 (17:01 +0000)
git-svn-id: http://madwifi-project.org/svn/madwifi/trunk@2726 0192ed92-7a03-0410-a25b-9323aeb14dbd

net80211/ieee80211_scan_ap.c

index b7803df4f86ea4a4b82c3d940c2507a6ca7527ce..cf035a5c8bc5a6b99a8586cb36b491a5b4b8fea0 100644 (file)
@@ -650,6 +650,7 @@ ap_end(struct ieee80211_scan_state *ss, struct ieee80211vap *vap,
                        if ((c = ieee80211_find_channel(ic, c->ic_freq,
                                c->ic_flags & ~IEEE80211_CHAN_TURBO)) == NULL) {
                                /* should never happen ?? */
+                               SCAN_AP_UNLOCK_IRQ_EARLY(as);
                                return 0;
                        }
                }