diff options
author | dillon <dillon@FreeBSD.org> | 1999-01-27 23:49:45 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 1999-01-27 23:49:45 +0000 |
commit | 4cc7d69521756e89ce3e5ea28211fda13fc4c9ff (patch) | |
tree | 50e5b1a2dce1a488f4ac02d871c971602df46153 /sys | |
parent | f9a4729a9b5e134850841ee06d85b97bf66e749b (diff) | |
download | FreeBSD-src-4cc7d69521756e89ce3e5ea28211fda13fc4c9ff.zip FreeBSD-src-4cc7d69521756e89ce3e5ea28211fda13fc4c9ff.tar.gz |
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.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/miscfs/devfs/devfs_vnops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c index 2f7c4ed..ca25440 100644 --- a/sys/miscfs/devfs/devfs_vnops.c +++ b/sys/miscfs/devfs/devfs_vnops.c @@ -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); } |