svn commit: r322527 - head/sys/mips/atheros
Xin LI
delphij at FreeBSD.org
Tue Aug 15 06:01:37 UTC 2017
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);
}
More information about the svn-src-head
mailing list