summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2003-02-19 17:25:58 +0000
committerjake <jake@FreeBSD.org>2003-02-19 17:25:58 +0000
commit23b5e8472afe89ef916000e0e13e95be03c55ff5 (patch)
treefe9283c60aa1ea9ff817deb745ed5dfac6931a1a /sys/sparc64
parentef7ce5bd49e78fcf05ba24bcfae59637dd4862b5 (diff)
downloadFreeBSD-src-23b5e8472afe89ef916000e0e13e95be03c55ff5.zip
FreeBSD-src-23b5e8472afe89ef916000e0e13e95be03c55ff5.tar.gz
Use M_WAITOK.
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/central/central.c3
-rw-r--r--sys/sparc64/fhc/fhc.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/sys/sparc64/central/central.c b/sys/sparc64/central/central.c
index e3f364d..4a9acfc 100644
--- a/sys/sparc64/central/central.c
+++ b/sys/sparc64/central/central.c
@@ -133,7 +133,8 @@ central_attach(device_t dev)
continue;
cdev = device_add_child(dev, NULL, -1);
if (cdev != NULL) {
- cdi = malloc(sizeof(*cdi), M_DEVBUF, M_ZERO);
+ cdi = malloc(sizeof(*cdi), M_DEVBUF,
+ M_WAITOK | M_ZERO);
cdi->cdi_name = name;
cdi->cdi_node = child;
OF_getprop_alloc(child, "device_type", 1,
diff --git a/sys/sparc64/fhc/fhc.c b/sys/sparc64/fhc/fhc.c
index 6b7c813..f12bbc9 100644
--- a/sys/sparc64/fhc/fhc.c
+++ b/sys/sparc64/fhc/fhc.c
@@ -123,7 +123,8 @@ fhc_attach(device_t dev)
continue;
cdev = device_add_child(dev, NULL, -1);
if (cdev != NULL) {
- fdi = malloc(sizeof(*fdi), M_DEVBUF, M_ZERO);
+ fdi = malloc(sizeof(*fdi), M_DEVBUF,
+ M_WAITOK | M_ZERO);
fdi->fdi_name = name;
fdi->fdi_node = child;
OF_getprop_alloc(child, "device_type", 1,
OpenPOWER on IntegriCloud