summaryrefslogtreecommitdiffstats
path: root/sys/fs/nwfs
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2003-04-01 02:47:09 +0000
committertjr <tjr@FreeBSD.org>2003-04-01 02:47:09 +0000
commit5c91df4e547e3bb79192699eb7aa77ad0a711798 (patch)
treee15d52394e692bdbfdb80f6697221799bb53d257 /sys/fs/nwfs
parent3bc3a08256383e7db08223cb4990a5687cc9e83e (diff)
downloadFreeBSD-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").
Diffstat (limited to 'sys/fs/nwfs')
-rw-r--r--sys/fs/nwfs/nwfs_vfsops.c3
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;
OpenPOWER on IntegriCloud