calls callout_drain(9) to un-schedule a scan timer to prevent a page

fault in softclock.

Submitted by:	sam
Reviewed by:	jhb, sam (original version), thompsa
This commit is contained in:
Weongyo Jeong 2009-06-03 04:10:22 +00:00
parent 5f51fb4871
commit 38812f8ee6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=193366

View File

@ -131,6 +131,7 @@ ieee80211_scan_detach(struct ieee80211com *ic)
scan_signal(ss);
IEEE80211_UNLOCK(ic);
ieee80211_draintask(ic, &SCAN_PRIVATE(ss)->ss_scan_task);
callout_drain(&SCAN_PRIVATE(ss)->ss_scan_timer);
KASSERT((ic->ic_flags & IEEE80211_F_SCAN) == 0,
("scan still running"));
if (ss->ss_ops != NULL) {