rsu: add KASSERT to document maximum mbuf size in rsu_tx_start
PR: 254479 Reviewed by: markj Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
15211f1950
commit
453d8a7ee2
@ -2897,6 +2897,7 @@ rsu_tx_start(struct rsu_softc *sc, struct ieee80211_node *ni,
|
||||
}
|
||||
|
||||
xferlen = sizeof(*txd) + m0->m_pkthdr.len;
|
||||
KASSERT(xferlen <= RSU_TXBUFSZ, ("%s: invalid length", __func__));
|
||||
m_copydata(m0, 0, m0->m_pkthdr.len, (caddr_t)&txd[1]);
|
||||
|
||||
data->buflen = xferlen;
|
||||
|
Loading…
x
Reference in New Issue
Block a user