Free mbufs when busdma loading fails.

Reviewed by:	erj, sbruno
MFC after:	1 month
This commit is contained in:
hselasky 2015-08-01 20:40:37 +00:00
parent e0c87f092c
commit 04346b458f
2 changed files with 0 additions and 6 deletions

View File

@ -2029,9 +2029,6 @@ em_xmit(struct tx_ring *txr, struct mbuf **m_headp)
/* Try it again, but only once */
remap = 0;
goto retry;
} else if (error == ENOMEM) {
adapter->no_tx_dma_setup++;
return (error);
} else if (error != 0) {
adapter->no_tx_dma_setup++;
m_freem(*m_headp);

View File

@ -1908,9 +1908,6 @@ igb_xmit(struct tx_ring *txr, struct mbuf **m_headp)
goto retry;
} else
return (error);
case ENOMEM:
txr->no_tx_dma_setup++;
return (error);
default:
txr->no_tx_dma_setup++;
m_freem(*m_headp);