svn commit: r322716 - stable/11/sys/mips/atheros

Xin LI delphij at FreeBSD.org
Sun Aug 20 07:04:25 UTC 2017


Author: delphij
Date: Sun Aug 20 07:04:23 2017
New Revision: 322716
URL: https://svnweb.freebsd.org/changeset/base/322716

Log:
  MFC r322527:
  
  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

Modified:
  stable/11/sys/mips/atheros/if_arge.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/mips/atheros/if_arge.c
==============================================================================
--- stable/11/sys/mips/atheros/if_arge.c	Sun Aug 20 06:07:40 2017	(r322715)
+++ stable/11/sys/mips/atheros/if_arge.c	Sun Aug 20 07:04:23 2017	(r322716)
@@ -1515,6 +1515,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-all mailing list