Specify the M_WAITOK flag explicitly in the MALLOC call to silence a

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

View File

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