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 at oktetlabs.ru>
Sponsored by:   Solarflare Communications, Inc.
This commit is contained in:
George V. Neville-Neil 2014-03-18 15:01:32 +00:00
parent d4f95c889d
commit 10d0bdca87
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=263302

View File

@ -536,6 +536,7 @@ sfxge_tx_packet_add(struct sfxge_txq *txq, struct mbuf *m)
return (0);
fail:
m_freem(m);
return (rc);
}