Use M_WAITOK.

This commit is contained in:
Jake Burkholder 2003-02-19 17:25:58 +00:00
parent 301c406900
commit a5902eaf0c
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=111134
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -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,