Replace the MFREE that Marshal (Quick Draw) Dillon apparently didn't look for.

MFC after:	1 day
This commit is contained in:
mjacob 2002-02-07 08:39:26 +00:00
parent 355959290f
commit 049aebbb73

View File

@ -436,6 +436,7 @@ am7990_init(sc)
* Routine to copy from mbuf chain to transmit buffer in * Routine to copy from mbuf chain to transmit buffer in
* network buffer memory. * network buffer memory.
*/ */
integrate int integrate int
am7990_put(sc, boff, m) am7990_put(sc, boff, m)
struct am7990_softc *sc; struct am7990_softc *sc;
@ -448,13 +449,15 @@ am7990_put(sc, boff, m)
for (; m; m = n) { for (; m; m = n) {
len = m->m_len; len = m->m_len;
if (len == 0) { if (len == 0) {
MFREE(m, n); n = m_free(m);
m = NULL;
continue; continue;
} }
(*sc->sc_copytobuf)(sc, mtod(m, caddr_t), boff, len); (*sc->sc_copytobuf)(sc, mtod(m, caddr_t), boff, len);
boff += len; boff += len;
tlen += len; tlen += len;
MFREE(m, n); n = m_free(m);
m = NULL;
} }
if (tlen < LEMINSIZE) { if (tlen < LEMINSIZE) {
(*sc->sc_zerobuf)(sc, boff, LEMINSIZE - tlen); (*sc->sc_zerobuf)(sc, boff, LEMINSIZE - tlen);
@ -969,7 +972,7 @@ am7990_ioctl(ifp, cmd, data)
#ifdef INET #ifdef INET
case AF_INET: case AF_INET:
am7990_init(sc); am7990_init(sc);
arp_ifinit((struct arpcom *)ifp, ifa); arp_ifinit((void *)ifp, ifa);
break; break;
#endif #endif
#ifdef NS #ifdef NS