Initialize dev->si_bsize*, the floppy driver doesn't use dsopen().
This commit is contained in:
parent
fc7998f35f
commit
9465bf4495
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50498
@ -1226,6 +1226,9 @@ Fdopen(dev_t dev, int flags, int mode, struct proc *p)
|
||||
fd_p fd;
|
||||
fdc_p fdc;
|
||||
|
||||
dev->si_bsize_phys = DEV_BSIZE;
|
||||
dev->si_bsize_best = BLKDEV_IOSIZE;
|
||||
dev->si_bsize_max = MAXBSIZE;
|
||||
/* check bounds */
|
||||
if ((fd = devclass_get_softc(fd_devclass, fdu)) == 0)
|
||||
return (ENXIO);
|
||||
|
@ -1226,6 +1226,9 @@ Fdopen(dev_t dev, int flags, int mode, struct proc *p)
|
||||
fd_p fd;
|
||||
fdc_p fdc;
|
||||
|
||||
dev->si_bsize_phys = DEV_BSIZE;
|
||||
dev->si_bsize_best = BLKDEV_IOSIZE;
|
||||
dev->si_bsize_max = MAXBSIZE;
|
||||
/* check bounds */
|
||||
if ((fd = devclass_get_softc(fd_devclass, fdu)) == 0)
|
||||
return (ENXIO);
|
||||
|
Loading…
Reference in New Issue
Block a user