svn commit: r243110 - head/sys/dev/cxgbe/tom
Navdeep Parhar
np at FreeBSD.org
Fri Nov 16 00:21:55 UTC 2012
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),
More information about the svn-src-all
mailing list