Fix but in devfs_strategy(). Switch cases were falling through
instead of breaking out, so a VCHR devices would run the VCHR routine and then fall through and run the VBLK routine. Fixed.
This commit is contained in:
parent
fe08c21a53
commit
7191deb01e
@ -23,7 +23,7 @@
|
||||
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* $Id: devfs_vnops.c,v 1.66 1999/01/21 08:29:06 dillon Exp $
|
||||
* $Id: devfs_vnops.c,v 1.67 1999/01/27 22:42:05 dillon Exp $
|
||||
*/
|
||||
|
||||
|
||||
@ -1720,8 +1720,10 @@ devfs_strategy(struct vop_strategy_args *ap)
|
||||
switch (ap->a_vp->v_type) {
|
||||
case VCHR:
|
||||
(*dnp->by.Cdev.cdevsw->d_strategy)(bp);
|
||||
break;
|
||||
case VBLK:
|
||||
(*dnp->by.Bdev.bdevsw->d_strategy)(bp);
|
||||
break;
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user