Specify the M_WAITOK flag explicitly in the MALLOC call to silence a
runtime warning ("Bad malloc flags: 0").
This commit is contained in:
parent
788fc48e32
commit
a968deece9
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user