View | Details | Raw Unified | Return to bug 22188
Collapse All | Expand All

(-)alpha/interrupt.c (-4 / +2 lines)
Lines 371-381 Link Here
371
	if (ithd == NULL || ithd->it_ih == NULL) {
371
	if (ithd == NULL || ithd->it_ih == NULL) {
372
		/* first handler for this vector */
372
		/* first handler for this vector */
373
		if (ithd == NULL) {
373
		if (ithd == NULL) {
374
			ithd = malloc(sizeof(struct ithd), M_DEVBUF, M_WAITOK);
374
			ithd = malloc(sizeof(struct ithd), M_DEVBUF, M_WAITOK | M_ZERO);
375
			if (ithd == NULL)
375
			if (ithd == NULL)
376
				return ENOMEM;
376
				return ENOMEM;
377
377
378
			bzero(ithd, sizeof(struct ithd));
379
			ithd->irq = vector;
378
			ithd->irq = vector;
380
			ithd->it_md = i;
379
			ithd->it_md = i;
381
			i->ithd = ithd;
380
			i->ithd = ithd;
Lines 410-419 Link Here
410
	}
409
	}
411
410
412
	/* Third, setup the interrupt descriptor for this handler. */
411
	/* Third, setup the interrupt descriptor for this handler. */
413
	idesc = malloc(sizeof (struct intrec), M_DEVBUF, M_WAITOK);
412
	idesc = malloc(sizeof (struct intrec), M_DEVBUF, M_WAITOK | M_ZERO);
414
	if (idesc == NULL)
413
	if (idesc == NULL)
415
		return ENOMEM;
414
		return ENOMEM;
416
	bzero(idesc, sizeof(struct intrec));
417
415
418
	idesc->handler = handler;
416
	idesc->handler = handler;
419
	idesc->argument = arg;
417
	idesc->argument = arg;
(-)osf1/imgact_osf1.c (-4 / +2 lines)
Lines 109-116 Link Here
109
		printf("unknown ecoff magic %x\n", eap->magic);
109
		printf("unknown ecoff magic %x\n", eap->magic);
110
		return ENOEXEC;
110
		return ENOEXEC;
111
	}
111
	}
112
	osf_auxargs = malloc(sizeof(Osf_Auxargs), M_TEMP, M_WAITOK);
112
	osf_auxargs = malloc(sizeof(Osf_Auxargs), M_TEMP, M_WAITOK | M_ZERO);
113
	bzero(osf_auxargs, sizeof(Osf_Auxargs));
114
	imgp->auxargs = osf_auxargs;
113
	imgp->auxargs = osf_auxargs;
115
	osf_auxargs->executable = osf_auxargs->exec_path;
114
	osf_auxargs->executable = osf_auxargs->exec_path;
116
	path_not_saved = copyinstr(imgp->fname, osf_auxargs->executable,
115
	path_not_saved = copyinstr(imgp->fname, osf_auxargs->executable,
Lines 226-233 Link Here
226
	raw_dend = (eap->data_start + eap->dsize);
225
	raw_dend = (eap->data_start + eap->dsize);
227
	if (dend > raw_dend) {
226
	if (dend > raw_dend) {
228
		caddr_t zeros;
227
		caddr_t zeros;
229
		zeros = malloc(dend-raw_dend,M_TEMP,M_WAITOK);
228
		zeros = malloc(dend-raw_dend,M_TEMP,M_WAITOK|M_ZERO);
230
		bzero(zeros,dend-raw_dend);
231
		if ((error = copyout(zeros, (caddr_t)raw_dend,
229
		if ((error = copyout(zeros, (caddr_t)raw_dend,
232
		    dend-raw_dend))) {
230
		    dend-raw_dend))) {
233
			uprintf("Can't zero start of bss, error %d\n",error);
231
			uprintf("Can't zero start of bss, error %d\n",error);

Return to bug 22188