Fix malloc() without legal mode flag.
This commit is contained in:
parent
8595de4aec
commit
ddcceb7e08
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=112335
@ -3112,7 +3112,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
|
||||
|
@ -3112,7 +3112,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
|
||||
|
Loading…
Reference in New Issue
Block a user