diff options
Diffstat (limited to 'sys/alpha/osf1')
-rw-r--r-- | sys/alpha/osf1/imgact_osf1.c | 6 | ||||
-rw-r--r-- | sys/alpha/osf1/osf1_misc.c | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sys/alpha/osf1/imgact_osf1.c b/sys/alpha/osf1/imgact_osf1.c index d633182..5db50d0 100644 --- a/sys/alpha/osf1/imgact_osf1.c +++ b/sys/alpha/osf1/imgact_osf1.c @@ -112,7 +112,7 @@ exec_osf1_imgact(struct image_params *imgp) printf("unknown ecoff magic %x\n", eap->magic); return ENOEXEC; } - osf_auxargs = malloc(sizeof(Osf_Auxargs), M_TEMP, M_WAITOK | M_ZERO); + osf_auxargs = malloc(sizeof(Osf_Auxargs), M_TEMP, M_ZERO); imgp->auxargs = osf_auxargs; osf_auxargs->executable = osf_auxargs->exec_path; path_not_saved = copyinstr(imgp->fname, osf_auxargs->executable, @@ -135,7 +135,7 @@ exec_osf1_imgact(struct image_params *imgp) * page of the loader. */ ndp = (struct nameidata *)malloc(sizeof(struct nameidata), - M_TEMP, M_WAITOK); + M_TEMP, 0); NDINIT(ndp, LOOKUP, LOCKLEAF | FOLLOW | SAVENAME, UIO_SYSSPACE, "/compat/osf1/sbin/loader", FIRST_THREAD_IN_PROC(imgp->proc)); @@ -218,7 +218,7 @@ exec_osf1_imgact(struct image_params *imgp) raw_dend = (eap->data_start + eap->dsize); if (dend > raw_dend) { caddr_t zeros; - zeros = malloc(dend-raw_dend,M_TEMP,M_WAITOK|M_ZERO); + zeros = malloc(dend-raw_dend, M_TEMP, M_ZERO); if ((error = copyout(zeros, (caddr_t)raw_dend, dend-raw_dend))) { uprintf("Can't zero start of bss, error %d\n",error); diff --git a/sys/alpha/osf1/osf1_misc.c b/sys/alpha/osf1/osf1_misc.c index dc75d55..686d220 100644 --- a/sys/alpha/osf1/osf1_misc.c +++ b/sys/alpha/osf1/osf1_misc.c @@ -121,7 +121,7 @@ osf1_emul_find(td, sgp, prefix, path, pbuf, cflag) struct vattr vat; struct vattr vatroot; - buf = (char *) malloc(MAXPATHLEN, M_TEMP, M_WAITOK); + buf = (char *) malloc(MAXPATHLEN, M_TEMP, 0); *pbuf = path; for (ptr = buf; (*ptr = *prefix) != '\0'; ptr++, prefix++) @@ -1181,8 +1181,8 @@ osf1_readv(td, uap) osize = uap->iovcnt * sizeof (struct osf1_iovec); nsize = uap->iovcnt * sizeof (struct iovec); - oio = malloc(osize, M_TEMP, M_WAITOK); - nio = malloc(nsize, M_TEMP, M_WAITOK); + oio = malloc(osize, M_TEMP, 0); + nio = malloc(nsize, M_TEMP, 0); error = 0; if ((error = copyin(uap->iovp, oio, osize))) @@ -1230,8 +1230,8 @@ osf1_writev(td, uap) osize = uap->iovcnt * sizeof (struct osf1_iovec); nsize = uap->iovcnt * sizeof (struct iovec); - oio = malloc(osize, M_TEMP, M_WAITOK); - nio = malloc(nsize, M_TEMP, M_WAITOK); + oio = malloc(osize, M_TEMP, 0); + nio = malloc(nsize, M_TEMP, 0); error = 0; if ((error = copyin(uap->iovp, oio, osize))) |