From 92a84dca9efc63c53bdb837c008e3b4e367e1ee4 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Fri, 29 Jan 1999 06:30:54 +0000 Subject: Backport bug in devfs_strategy() from -4.x. switch case for VCHR was falling through to VBLK. Note however that the bug would not have caused abnormal operation in most cases. --- sys/miscfs/devfs/devfs_vnops.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'sys/miscfs/devfs') diff --git a/sys/miscfs/devfs/devfs_vnops.c b/sys/miscfs/devfs/devfs_vnops.c index e9bdc2a36c72..d9f74982adb2 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.64 1998/12/15 23:46:59 eivind Exp $ + * $Id: devfs_vnops.c,v 1.65 1999/01/12 11:49:29 eivind Exp $ */ @@ -1717,8 +1717,13 @@ 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; + default: + /* XXX set error code? */ + break; } return (0); } -- cgit v1.3