Date: Sat, 15 Mar 2014 17:13:06 +0400 From: Andrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru> To: net@FreeBSD.org Subject: [patch] [1/6] sfxge: fix mbuf leak if it does not fit in software queue Message-ID: <532451E2.20407@oktetlabs.ru>
next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format. --------------040304000606070504070008 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------040304000606070504070008 Content-Type: text/x-patch; name="1-sfxge-leak.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="1-sfxge-leak.patch" sfxge: fix mbuf leak if it does not fit in software queue mbuf should be owned by if_transmit function in any case. Submitted-by: Andrew Rybchenko <Andrew.Rybchenko@oktetlabs.ru> Sponsored by: Solarflare Communications, Inc. diff -r e2bc8f64f1b2 -r ff9f5d3dbafe src/driver/freebsd/sfxge_tx.c --- a/head/sys/dev/sfxge/sfxge_tx.c Tue Mar 04 13:13:05 2014 +0400 +++ b/head/sys/dev/sfxge/sfxge_tx.c Tue Mar 04 13:15:13 2014 +0400 @@ -536,6 +536,7 @@ return (0); fail: + m_freem(m); return (rc); } --------------040304000606070504070008--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?532451E2.20407>