Plug memory leak in arge_encap().

Reported by:	Ilja Van Sprundel <ivansprundel ioactive.com>
Submitted by:	Domagoj Stolfa <domagoj.stolfa gmail.com>
Reviewed by:	adrian
MFC after:	3 days
This commit is contained in:
delphij 2017-08-15 06:01:36 +00:00
parent 796e094ce6
commit a165ab4585

View File

@ -1516,6 +1516,7 @@ arge_encap(struct arge_softc *sc, struct mbuf **m_head)
sc->stats.tx_pkts_unaligned++;
m = m_defrag(*m_head, M_NOWAIT);
if (m == NULL) {
m_freem(*m_head);
*m_head = NULL;
return (ENOBUFS);
}