Fix issues found by Coverity (223392, 223393) due to TSO additions

Submitted by:	Matthew Jacob
This commit is contained in:
Prafulla Deuskar 2006-09-11 20:59:01 +00:00
parent 7048a99c30
commit a21ff306d8

View File

@ -1516,9 +1516,11 @@ em_encap(struct adapter *adapter, struct mbuf **m_headp)
*/
if (do_tso && (m_head->m_len <= M_TSO_LEN)) {
m_head = m_pullup(m_head, M_TSO_LEN + 4);
if (m_head == NULL)
*m_headp = m_head;
if (m_head == NULL) {
return (ENOBUFS);
}
}
/*
* Map the packet for DMA.