Skip site navigation (1)Skip section navigation (2)
Date:      07 Dec 2001 13:23:27 +0100
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        "Andrew R. Reiter" <arr@FreeBSD.org>
Cc:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/net if_stf.c
Message-ID:  <xzp4rn32p8g.fsf@flood.ping.uio.no>
In-Reply-To: <200112070132.fB71WfJ26422@freefall.freebsd.org>
References:  <200112070132.fB71WfJ26422@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
"Andrew R. Reiter" <arr@FreeBSD.org> writes:
>   Log:
>   - malloc should be passed M_WAITOK, not M_WAIT (a mbuf flag)
>   - make use of M_ZERO to remove a call to bzero()

There are a couple more:

des@des ~/www_docs/freebsd/diary% kcurrent -w M_WAIT | grep malloc
src/sys/dev/digi/digi.c:                sc->bios.data = malloc(sc->bios.size, M_TTYS, M_WAIT);
src/sys/dev/digi/digi.c:                sc->fep.data = malloc(sc->fep.size, M_TTYS, M_WAIT);
src/sys/dev/digi/digi.c:                sc->link.data = malloc(sc->link.size, M_TTYS, M_WAIT);
src/sys/net/if_stf.c:   sc = malloc(sizeof(struct stf_softc), M_STF, M_WAIT);

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?xzp4rn32p8g.fsf>