diff options
author | sephe <sephe@FreeBSD.org> | 2007-08-26 11:32:56 +0000 |
---|---|---|
committer | sephe <sephe@FreeBSD.org> | 2007-08-26 11:32:56 +0000 |
commit | f0d941b5ddb0ebae925064780a4dc2c342a8e929 (patch) | |
tree | 831efb69474d06b6361d0360eaef0015aa835d0e /sys/net80211/ieee80211_freebsd.c | |
parent | 975e1272a0dce9299febe1a3ca5a8dcda1dd4f1b (diff) | |
download | FreeBSD-src-f0d941b5ddb0ebae925064780a4dc2c342a8e929.zip FreeBSD-src-f0d941b5ddb0ebae925064780a4dc2c342a8e929.tar.gz |
Fix following nits:
- Per ieee80211com sysctl ctx leakage on detach
- getmgtframe incorrectly adjusts mbuf.m_data
Reviewed by: sam
Approved by: re (bmah), sam (mentor)
Diffstat (limited to 'sys/net80211/ieee80211_freebsd.c')
-rw-r--r-- | sys/net80211/ieee80211_freebsd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/net80211/ieee80211_freebsd.c b/sys/net80211/ieee80211_freebsd.c index d75b2d2..f9c1abd 100644 --- a/sys/net80211/ieee80211_freebsd.c +++ b/sys/net80211/ieee80211_freebsd.c @@ -136,6 +136,7 @@ ieee80211_sysctl_detach(struct ieee80211com *ic) if (ic->ic_sysctl != NULL) { sysctl_ctx_free(ic->ic_sysctl); + FREE(ic->ic_sysctl, M_DEVBUF); ic->ic_sysctl = NULL; } } @@ -214,7 +215,7 @@ ieee80211_getmgtframe(uint8_t **frm, int headroom, int pktlen) MC_ALIGN(m, len); } if (m != NULL) { - m->m_data += sizeof(struct ieee80211_frame); + m->m_data += headroom; *frm = m->m_data; } return m; |