Author: delphij
Date: Tue Aug 15 06:01:36 2017
New Revision: 322527
URL: https://svnweb.freebsd.org/changeset/base/322527
Log:
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
Modified:
head/sys/mips/atheros/if_arge.c
Modified: head/sys/mips/atheros/if_arge.c
==============================================================================
--- head/sys/mips/atheros/if_arge.c Tue Aug 15 02:21:02 2017
(r322526)
+++ head/sys/mips/atheros/if_arge.c Tue Aug 15 06:01:36 2017
(r322527)
@@ -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);
}
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"