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),
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"