Fix a malloc() with no legal modeflag.
This commit is contained in:
parent
2082addf66
commit
8595de4aec
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user