Author: yongari
Date: Mon Apr 14 05:05:07 2014
New Revision: 264447
URL: http://svnweb.freebsd.org/changeset/base/264447
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/9/sys/dev/ale/if_ale.c
Directory Properties:
stable/9/sys/ (props changed)
stable/9/sys/dev/ (props changed)
Modified: stable/9/sys/dev/ale/if_ale.c
==============================================================================
--- stable/9/sys/dev/ale/if_ale.c Mon Apr 14 05:04:23 2014
(r264446)
+++ stable/9/sys/dev/ale/if_ale.c Mon Apr 14 05:05:07 2014
(r264447)
@@ -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);
}
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-stable-9
To unsubscribe, send any mail to "[email protected]"