Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2017 06:01:36 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r322527 - head/sys/mips/atheros
Message-ID:  <201708150601.v7F61aPS080917@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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);
 		}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201708150601.v7F61aPS080917>