diff options
Diffstat (limited to 'sys/net80211/ieee80211_scan.c')
-rw-r--r-- | sys/net80211/ieee80211_scan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_scan.c b/sys/net80211/ieee80211_scan.c index 7fe649b..dabb404 100644 --- a/sys/net80211/ieee80211_scan.c +++ b/sys/net80211/ieee80211_scan.c @@ -96,7 +96,7 @@ ieee80211_scan_attach(struct ieee80211com *ic) { struct scan_state *ss; - ss = malloc(sizeof(struct scan_state), + MALLOC(ss, struct scan_state *, sizeof(struct scan_state), M_80211_SCAN, M_NOWAIT | M_ZERO); if (ss == NULL) { ic->ic_scan = NULL; @@ -122,7 +122,7 @@ ieee80211_scan_detach(struct ieee80211com *ic) } ic->ic_flags &= ~IEEE80211_F_SCAN; ic->ic_scan = NULL; - free(SCAN_PRIVATE(ss), M_80211_SCAN); + FREE(SCAN_PRIVATE(ss), M_80211_SCAN); } } |