diff options
| author | Warner Losh <imp@FreeBSD.org> | 2003-02-19 05:47:46 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2003-02-19 05:47:46 +0000 |
| commit | a163d034fadcfb4a25ca34a2ba5f491c47b6ff69 (patch) | |
| tree | 9e20e320fe15ae4bf68f8335fcf9d3e71d3b3614 /sys/kern/kern_intr.c | |
| parent | 8f3e32c2b6b9f392e096f096653596f55f2134ae (diff) | |
Notes
Diffstat (limited to 'sys/kern/kern_intr.c')
| -rw-r--r-- | sys/kern/kern_intr.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index 53308680e79f..a0a7e0d1e0e0 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -177,7 +177,7 @@ ithread_create(struct ithd **ithread, int vector, int flags, if ((flags & ~IT_SOFT) != 0) return (EINVAL); - ithd = malloc(sizeof(struct ithd), M_ITHREAD, M_ZERO); + ithd = malloc(sizeof(struct ithd), M_ITHREAD, M_WAITOK | M_ZERO); ithd->it_vector = vector; ithd->it_disable = disable; ithd->it_enable = enable; @@ -249,7 +249,7 @@ ithread_add_handler(struct ithd* ithread, const char *name, if ((flags & INTR_FAST) !=0) flags |= INTR_EXCL; - ih = malloc(sizeof(struct intrhand), M_ITHREAD, M_ZERO); + ih = malloc(sizeof(struct intrhand), M_ITHREAD, M_WAITOK | M_ZERO); ih->ih_handler = handler; ih->ih_argument = arg; ih->ih_name = name; |
