if_tsec: Free entire mbuf chain on failure

Reviewed by:	bz
Sponsored by:	The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D57478
This commit is contained in:
Ed Maste committed 2026-06-15 10:32:02 -04:00
1 parent 3d0b6c69dc
commit 39e2fe2323
1 file changed
+1 -1
+1 -1
View File
@@ -1321,7 +1321,7 @@ tsec_receive_intr_locked(struct tsec_softc *sc, int count)
~TSEC_RXBD_ZEROONINIT) | TSEC_RXBD_E | TSEC_RXBD_I;
if (sc->frame != NULL) {
m_free(sc->frame);
m_freem(sc->frame);
sc->frame = NULL;
}