summaryrefslogtreecommitdiff
path: root/sys/amd64/isa/intr_machdep.c
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2000-12-08 21:51:06 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2000-12-08 21:51:06 +0000
commit7cc0979fd64b721c92c3dd4a8688b56e15c9a5f9 (patch)
treec383ffd6da8fbab2789828310191f8717f675124 /sys/amd64/isa/intr_machdep.c
parentb1f3daafde37fa36b819c0649c121d98175a6a2d (diff)
Notes
Diffstat (limited to 'sys/amd64/isa/intr_machdep.c')
-rw-r--r--sys/amd64/isa/intr_machdep.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/amd64/isa/intr_machdep.c b/sys/amd64/isa/intr_machdep.c
index ffdcfc4d37219..6f7618586b28b 100644
--- a/sys/amd64/isa/intr_machdep.c
+++ b/sys/amd64/isa/intr_machdep.c
@@ -546,10 +546,10 @@ inthand_add(const char *name, int irq, driver_intr_t handler, void *arg,
if (ithd == NULL || ithd->it_ih == NULL) {
/* first handler for this irq. */
if (ithd == NULL) {
- ithd = malloc(sizeof (struct ithd), M_DEVBUF, M_WAITOK);
+ ithd = malloc(sizeof (struct ithd), M_DEVBUF,
+ M_WAITOK | M_ZERO);
if (ithd == NULL)
return (NULL);
- bzero(ithd, sizeof(struct ithd));
ithd->irq = irq;
ithds[irq] = ithd;
}
@@ -620,10 +620,9 @@ inthand_add(const char *name, int irq, driver_intr_t handler, void *arg,
else
strcat(p->p_comm, "+");
}
- idesc = malloc(sizeof (struct intrhand), M_DEVBUF, M_WAITOK);
+ idesc = malloc(sizeof (struct intrhand), M_DEVBUF, M_WAITOK | M_ZERO);
if (idesc == NULL)
return (NULL);
- bzero(idesc, sizeof (struct intrhand));
idesc->ih_handler = handler;
idesc->ih_argument = arg;