Don't try to free an unassigned pointer.
Submitted by: Paul B Mahol <onemda at gmail.com> MFC after: 1 week
This commit is contained in:
parent
fe42eae980
commit
d650d3c9e2
@ -1176,11 +1176,8 @@ ndis_rxeof_eth(adapter, ctx, addr, hdr, hdrlen, lookahead, lookaheadlen, pktlen)
|
||||
block = adapter;
|
||||
|
||||
m = m_getcl(M_DONTWAIT, MT_DATA, M_PKTHDR);
|
||||
|
||||
if (m == NULL) {
|
||||
NdisFreePacket(p);
|
||||
if (m == NULL)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Save the data provided to us so far. */
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user