summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sys/dev/fdc/fdc.c2
-rw-r--r--sys/isa/fd.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/fdc/fdc.c b/sys/dev/fdc/fdc.c
index 16c1778..9856420 100644
--- a/sys/dev/fdc/fdc.c
+++ b/sys/dev/fdc/fdc.c
@@ -2564,7 +2564,7 @@ fdmisccmd(dev_t dev, u_int cmd, void *data)
finfo = (struct fd_formb *)data;
idfield = (struct fdc_readid *)data;
- bp = malloc(sizeof(struct bio), M_TEMP, M_ZERO);
+ bp = malloc(sizeof(struct bio), M_TEMP, M_WAITOK | M_ZERO);
/*
* Set up a bio request for fdstrategy(). bio_blkno is faked
diff --git a/sys/isa/fd.c b/sys/isa/fd.c
index 16c1778..9856420 100644
--- a/sys/isa/fd.c
+++ b/sys/isa/fd.c
@@ -2564,7 +2564,7 @@ fdmisccmd(dev_t dev, u_int cmd, void *data)
finfo = (struct fd_formb *)data;
idfield = (struct fdc_readid *)data;
- bp = malloc(sizeof(struct bio), M_TEMP, M_ZERO);
+ bp = malloc(sizeof(struct bio), M_TEMP, M_WAITOK | M_ZERO);
/*
* Set up a bio request for fdstrategy(). bio_blkno is faked
OpenPOWER on IntegriCloud