mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-31 16:57:10 +00:00
Don't use mbuf allocator flags for malloc(9).
This commit is contained in:
parent
3eb309c55e
commit
1c7d84ed3c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111251
@ -483,7 +483,8 @@ nfsrv_rcv(struct socket *so, void *arg, int waitflag)
|
||||
if (mp) {
|
||||
struct nfsrv_rec *rec;
|
||||
rec = malloc(sizeof(struct nfsrv_rec),
|
||||
M_NFSRVDESC, waitflag);
|
||||
M_NFSRVDESC,
|
||||
waitflag == M_DONTWAIT ? M_NOWAIT : M_WAITOK);
|
||||
if (!rec) {
|
||||
if (nam)
|
||||
FREE(nam, M_SONAME);
|
||||
@ -631,7 +632,8 @@ nfsrv_getstream(struct nfssvc_sock *slp, int waitflag)
|
||||
*mpp = recm;
|
||||
if (slp->ns_flag & SLP_LASTFRAG) {
|
||||
struct nfsrv_rec *rec;
|
||||
rec = malloc(sizeof(struct nfsrv_rec), M_NFSRVDESC, waitflag);
|
||||
rec = malloc(sizeof(struct nfsrv_rec), M_NFSRVDESC,
|
||||
waitflag == M_DONTWAIT ? M_NOWAIT : M_WAITOK);
|
||||
if (!rec) {
|
||||
m_freem(slp->ns_frag);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user