Free mbufs when busdma loading fails.
Reviewed by: erj, sbruno MFC after: 1 month
This commit is contained in:
parent
e0c87f092c
commit
04346b458f
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user