summaryrefslogtreecommitdiff
path: root/sys/arch/mvme68k
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1998-08-31 17:42:46 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1998-08-31 17:42:46 +0000
commit8de80c67d0f54dc8f36ad93547129197b2447c6a (patch)
tree0556a00de0ab667e7f1eb6af1300e94695c5a968 /sys/arch/mvme68k
parent1fb6ebfd016dbeb5944a4247652ad063c1fec0d6 (diff)
Return ENXIO on open of /dev/mem minor devs that don't exist
Diffstat (limited to 'sys/arch/mvme68k')
-rw-r--r--sys/arch/mvme68k/mvme68k/mem.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/sys/arch/mvme68k/mvme68k/mem.c b/sys/arch/mvme68k/mvme68k/mem.c
index 49c9b1c49f8..c078c29e414 100644
--- a/sys/arch/mvme68k/mvme68k/mem.c
+++ b/sys/arch/mvme68k/mvme68k/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.5 1997/02/10 11:39:26 downsj Exp $ */
+/* $OpenBSD: mem.c,v 1.6 1998/08/31 17:42:35 millert Exp $ */
/*
* Copyright (c) 1995 Theo de Raadt
@@ -94,7 +94,15 @@ mmopen(dev, flag, mode)
int flag, mode;
{
- return (0);
+ switch (minor(dev)) {
+ case 0:
+ case 1:
+ case 2:
+ case 12:
+ return (0);
+ default:
+ return (ENXIO);
+ }
}
/*ARGSUSED*/