Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Nov 2012 00:21:54 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r243110 - head/sys/dev/cxgbe/tom
Message-ID:  <201211160021.qAG0Ls0m083505@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Fri Nov 16 00:21:54 2012
New Revision: 243110
URL: http://svnweb.freebsd.org/changeset/base/243110

Log:
  cxgbe/tom: Plug mbuf leak.
  
  MFC after:	3 days

Modified:
  head/sys/dev/cxgbe/tom/t4_listen.c

Modified: head/sys/dev/cxgbe/tom/t4_listen.c
==============================================================================
--- head/sys/dev/cxgbe/tom/t4_listen.c	Fri Nov 16 00:14:02 2012	(r243109)
+++ head/sys/dev/cxgbe/tom/t4_listen.c	Fri Nov 16 00:21:54 2012	(r243110)
@@ -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?201211160021.qAG0Ls0m083505>