Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 20 Aug 2017 07:04:24 +0000 (UTC)
From:      Xin LI <delphij@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r322716 - stable/11/sys/mips/atheros
Message-ID:  <201708200704.v7K74OMW066764@repo.freebsd.org>

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



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