summaryrefslogtreecommitdiffstats
path: root/sys/dev/puc/puc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/puc/puc.c')
-rw-r--r--sys/dev/puc/puc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/puc/puc.c b/sys/dev/puc/puc.c
index 4cba354..18d2fba 100644
--- a/sys/dev/puc/puc.c
+++ b/sys/dev/puc/puc.c
@@ -248,7 +248,7 @@ puc_attach(device_t dev, const struct puc_device_description *desc)
rle->res = sc->sc_bar_mappings[bidx].res;
} else {
rle->res = malloc(sizeof(struct resource), M_DEVBUF,
- M_ZERO);
+ M_WAITOK | M_ZERO);
if (rle->res == NULL) {
free(pdev, M_DEVBUF);
return (ENOMEM);
OpenPOWER on IntegriCloud