From 788fc48e321a1c291ffd42045e5097f15ea1034c Mon Sep 17 00:00:00 2001 From: "Tim J. Robbins" Date: Tue, 1 Apr 2003 02:42:02 +0000 Subject: [PATCH] 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(-) diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c index 17ce21dd9d7..753efe8a4f6 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");