diff options
author | tjr <tjr@FreeBSD.org> | 2003-04-01 02:47:09 +0000 |
---|---|---|
committer | tjr <tjr@FreeBSD.org> | 2003-04-01 02:47:09 +0000 |
commit | 5c91df4e547e3bb79192699eb7aa77ad0a711798 (patch) | |
tree | e15d52394e692bdbfdb80f6697221799bb53d257 | |
parent | 3bc3a08256383e7db08223cb4990a5687cc9e83e (diff) | |
download | FreeBSD-src-5c91df4e547e3bb79192699eb7aa77ad0a711798.zip FreeBSD-src-5c91df4e547e3bb79192699eb7aa77ad0a711798.tar.gz |
Specify the M_WAITOK flag explicitly in the MALLOC call to silence a
runtime warning ("Bad malloc flags: 0").
-rw-r--r-- | sys/fs/nwfs/nwfs_vfsops.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/fs/nwfs/nwfs_vfsops.c b/sys/fs/nwfs/nwfs_vfsops.c index 868bcec..7979410 100644 --- a/sys/fs/nwfs/nwfs_vfsops.c +++ b/sys/fs/nwfs/nwfs_vfsops.c @@ -181,7 +181,8 @@ static int nwfs_mount(struct mount *mp, char *path, caddr_t data, ncp_conn_unlock(conn, td); /* we keep the ref */ mp->mnt_stat.f_iosize = conn->buffer_size; /* We must malloc our own mount info */ - MALLOC(nmp,struct nwmount *,sizeof(struct nwmount),M_NWFSDATA,M_USE_RESERVE | M_ZERO); + MALLOC(nmp,struct nwmount *,sizeof(struct nwmount),M_NWFSDATA, + M_WAITOK | M_USE_RESERVE | M_ZERO); if (nmp == NULL) { nwfs_printf("could not alloc nwmount\n"); error = ENOMEM; |