Initialize dev->si_bsize*, the floppy driver doesn't use dsopen().

This commit is contained in:
Poul-Henning Kamp 1999-08-28 08:10:13 +00:00
parent fc7998f35f
commit 9465bf4495
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=50498
2 changed files with 6 additions and 0 deletions

View File

@ -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);

View File

@ -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);