summaryrefslogtreecommitdiffstats
path: root/sys/dev/fdc/fdc.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-03-17 07:26:25 +0000
committerphk <phk@FreeBSD.org>2003-03-17 07:26:25 +0000
commit45091298692d7db104eba79a7f18cb915939fbeb (patch)
tree6ad9432d1b14188637ad1a4e4fe0b0d011de059e /sys/dev/fdc/fdc.c
parent31b892a2b6ada7991eba8b0598a231b441cd2521 (diff)
downloadFreeBSD-src-45091298692d7db104eba79a7f18cb915939fbeb.zip
FreeBSD-src-45091298692d7db104eba79a7f18cb915939fbeb.tar.gz
Fix a malloc() with no legal modeflag.
Diffstat (limited to 'sys/dev/fdc/fdc.c')
-rw-r--r--sys/dev/fdc/fdc.c2
1 files changed, 1 insertions, 1 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
OpenPOWER on IntegriCloud