mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
Initialize dev->si_bsize*, the floppy driver doesn't use dsopen().
This commit is contained in:
parent
fc7998f35f
commit
9465bf4495
2 changed files with 6 additions and 0 deletions
|
|
@ -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 a new issue