Date: Mon, 14 Apr 2014 05:04:23 +0000 (UTC) From: Pyun YongHyeon <yongari@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r264446 - stable/10/sys/dev/ale Message-ID: <201404140504.s3E54Nl9040458@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: yongari Date: Mon Apr 14 05:04:23 2014 New Revision: 264446 URL: http://svnweb.freebsd.org/changeset/base/264446 Log: MFC r260429: m_defrag(9) does not touch original mbuf chain when it can't allocate new mbuf. Free original mbuf chain when driver is not able to send the packet. Modified: stable/10/sys/dev/ale/if_ale.c Directory Properties: stable/10/ (props changed) Modified: stable/10/sys/dev/ale/if_ale.c ============================================================================== --- stable/10/sys/dev/ale/if_ale.c Mon Apr 14 04:59:46 2014 (r264445) +++ stable/10/sys/dev/ale/if_ale.c Mon Apr 14 05:04:23 2014 (r264446) @@ -1659,6 +1659,7 @@ ale_encap(struct ale_softc *sc, struct m (mtod(m, intptr_t) & 3) != 0) { m = m_defrag(*m_head, M_NOWAIT); if (m == NULL) { + m_freem(*m_head); *m_head = NULL; return (ENOBUFS); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404140504.s3E54Nl9040458>