summaryrefslogtreecommitdiff
path: root/sys/nfs/nfs_vfsops.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-18 09:28:04 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-04-18 09:28:04 +0000
commit837023773b3c19984f50bf6d66f994a4a63ac77d (patch)
tree7708826639bd3d8b800e23e2178bb927de374427 /sys/nfs/nfs_vfsops.c
parent7846a19cf31930144368152ab96f9b39582bb268 (diff)
ensure nfs_mountroot device is a network device; from who-knows-who at
netbsd but who-can-tell because they don't make their cvs tree available so that people can check and give proper credit.
Diffstat (limited to 'sys/nfs/nfs_vfsops.c')
-rw-r--r--sys/nfs/nfs_vfsops.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c
index 0e00077f5c4..8d78d586c72 100644
--- a/sys/nfs/nfs_vfsops.c
+++ b/sys/nfs/nfs_vfsops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: nfs_vfsops.c,v 1.16 1997/01/15 03:52:27 kstailey Exp $ */
+/* $OpenBSD: nfs_vfsops.c,v 1.17 1997/04/18 09:28:03 deraadt Exp $ */
/* $NetBSD: nfs_vfsops.c,v 1.46.4.1 1996/05/25 22:40:35 fvdl Exp $ */
/*
@@ -268,6 +268,9 @@ nfs_mountroot()
procp = curproc; /* XXX */
+ if (root_device->dv_class != DV_IFNET)
+ return (ENODEV);
+
/*
* XXX time must be non-zero when we init the interface or else
* the arp code will wedge. [Fixed now in if_ether.c]