From 3bc3a08256383e7db08223cb4990a5687cc9e83e Mon Sep 17 00:00:00 2001 From: tjr <tjr@FreeBSD.org> Date: Tue, 1 Apr 2003 02:42:02 +0000 Subject: Give the M_WAITOK flag explicitly to the MALLOC call to silence a runtime warning ("Bad malloc flags: 0"). --- sys/fs/smbfs/smbfs_vfsops.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sys/fs/smbfs') diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c index 17ce21d..753efe8 100644 --- a/sys/fs/smbfs/smbfs_vfsops.c +++ b/sys/fs/smbfs/smbfs_vfsops.c @@ -155,7 +155,8 @@ smbfs_mount(struct mount *mp, char *path, caddr_t data, #ifdef SMBFS_USEZONE smp = zalloc(smbfsmount_zone); #else - MALLOC(smp, struct smbmount*, sizeof(*smp), M_SMBFSDATA, M_USE_RESERVE); + MALLOC(smp, struct smbmount*, sizeof(*smp), M_SMBFSDATA, + M_WAITOK|M_USE_RESERVE); #endif if (smp == NULL) { printf("could not alloc smbmount\n"); -- cgit v1.1