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:
bschmidt 2011-01-07 18:41:59 +00:00
parent fe42eae980
commit d650d3c9e2

View File

@ -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. */