aboutsummaryrefslogtreecommitdiff
path: root/sys/sparc64/fhc/fhc.c
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2003-02-19 17:25:58 +0000
committerJake Burkholder <jake@FreeBSD.org>2003-02-19 17:25:58 +0000
commita5902eaf0c566fd3733812e6ee159148bc8c7a71 (patch)
treefe9283c60aa1ea9ff817deb745ed5dfac6931a1a /sys/sparc64/fhc/fhc.c
parent301c406900323be41520262fc8e55bd1c658bc01 (diff)
downloadsrc-a5902eaf0c566fd3733812e6ee159148bc8c7a71.tar.gz
src-a5902eaf0c566fd3733812e6ee159148bc8c7a71.zip
Use M_WAITOK.
Notes
Notes: svn path=/head/; revision=111134
Diffstat (limited to 'sys/sparc64/fhc/fhc.c')
-rw-r--r--sys/sparc64/fhc/fhc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/sparc64/fhc/fhc.c b/sys/sparc64/fhc/fhc.c
index 6b7c8139a4c2..f12bbc9dc7b2 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,