Give the M_WAITOK flag explicitly to the MALLOC call to silence a runtime

warning ("Bad malloc flags: 0").
This commit is contained in:
Tim J. Robbins 2003-04-01 02:42:02 +00:00
parent a31794d553
commit 788fc48e32

View file

@ -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");