summaryrefslogtreecommitdiffstats
path: root/sys/fs/smbfs/smbfs_vfsops.c
diff options
context:
space:
mode:
authortjr <tjr@FreeBSD.org>2003-04-01 02:42:02 +0000
committertjr <tjr@FreeBSD.org>2003-04-01 02:42:02 +0000
commit3bc3a08256383e7db08223cb4990a5687cc9e83e (patch)
tree2311cf8e2c4e548bbd82e040f09e2d590daa8cf7 /sys/fs/smbfs/smbfs_vfsops.c
parent48ae97193ab7383182fc11ea2f8b55af40cb1533 (diff)
downloadFreeBSD-src-3bc3a08256383e7db08223cb4990a5687cc9e83e.zip
FreeBSD-src-3bc3a08256383e7db08223cb4990a5687cc9e83e.tar.gz
Give the M_WAITOK flag explicitly to the MALLOC call to silence a runtime
warning ("Bad malloc flags: 0").
Diffstat (limited to 'sys/fs/smbfs/smbfs_vfsops.c')
-rw-r--r--sys/fs/smbfs/smbfs_vfsops.c3
1 files changed, 2 insertions, 1 deletions
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");
OpenPOWER on IntegriCloud