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)
This commit is contained in:
parent
610f2ef365
commit
98b335504d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=171984
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user