Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 27 Nov 2012 08:32:12 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r243605 - stable/9/sys/dev/cxgbe/tom
Message-ID:  <201211270832.qAR8WCi1021180@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Tue Nov 27 08:32:12 2012
New Revision: 243605
URL: http://svnweb.freebsd.org/changeset/base/243605

Log:
  MFC r243110:
  
  cxgbe/tom: Plug mbuf leak.

Modified:
  stable/9/sys/dev/cxgbe/tom/t4_listen.c
Directory Properties:
  stable/9/sys/   (props changed)
  stable/9/sys/dev/   (props changed)

Modified: stable/9/sys/dev/cxgbe/tom/t4_listen.c
==============================================================================
--- stable/9/sys/dev/cxgbe/tom/t4_listen.c	Tue Nov 27 06:50:24 2012	(r243604)
+++ stable/9/sys/dev/cxgbe/tom/t4_listen.c	Tue Nov 27 08:32:12 2012	(r243605)
@@ -559,8 +559,10 @@ t4_syncache_respond(struct toedev *tod, 
 	struct tcphdr *th = (void *)(ip + 1);
 
 	wr = (struct wrqe *)atomic_readandclear_ptr(&synqe->wr);
-	if (wr == NULL)
+	if (wr == NULL) {
+		m_freem(m);
 		return (EALREADY);
+	}
 
 	bzero(&to, sizeof(to));
 	tcp_dooptions(&to, (void *)(th + 1), (th->th_off << 2) - sizeof(*th),



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