Date: Fri, 7 Jan 2011 18:42:00 +0000 (UTC) From: Bernhard Schmidt <bschmidt@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r217118 - head/sys/dev/if_ndis Message-ID: <201101071842.p07Ig0sl061862@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: bschmidt Date: Fri Jan 7 18:41:59 2011 New Revision: 217118 URL: http://svn.freebsd.org/changeset/base/217118 Log: Don't try to free an unassigned pointer. Submitted by: Paul B Mahol <onemda at gmail.com> MFC after: 1 week Modified: head/sys/dev/if_ndis/if_ndis.c Modified: head/sys/dev/if_ndis/if_ndis.c ============================================================================== --- head/sys/dev/if_ndis/if_ndis.c Fri Jan 7 18:41:32 2011 (r217117) +++ head/sys/dev/if_ndis/if_ndis.c Fri Jan 7 18:41:59 2011 (r217118) @@ -1176,11 +1176,8 @@ ndis_rxeof_eth(adapter, ctx, addr, hdr, 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. */
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201101071842.p07Ig0sl061862>