Date: Fri, 16 Nov 2012 00:23:23 +0000 (UTC) From: Navdeep Parhar <np@FreeBSD.org> To: src-committers@freebsd.org, svn-src-user@freebsd.org Subject: svn commit: r243111 - user/np/stable_9_toe/sys/dev/cxgbe/tom Message-ID: <201211160023.qAG0NN5H083729@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: np Date: Fri Nov 16 00:23:23 2012 New Revision: 243111 URL: http://svnweb.freebsd.org/changeset/base/243111 Log: Pull in mbuf leak fix from head (r243110). Modified: user/np/stable_9_toe/sys/dev/cxgbe/tom/t4_listen.c Directory Properties: user/np/stable_9_toe/sys/ (props changed) user/np/stable_9_toe/sys/dev/ (props changed) Modified: user/np/stable_9_toe/sys/dev/cxgbe/tom/t4_listen.c ============================================================================== --- user/np/stable_9_toe/sys/dev/cxgbe/tom/t4_listen.c Fri Nov 16 00:21:54 2012 (r243110) +++ user/np/stable_9_toe/sys/dev/cxgbe/tom/t4_listen.c Fri Nov 16 00:23:23 2012 (r243111) @@ -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?201211160023.qAG0NN5H083729>