summaryrefslogtreecommitdiffstats
path: root/sys/i386/isa/spigot.c
diff options
context:
space:
mode:
authorjkh <jkh@FreeBSD.org>1995-08-29 16:44:46 +0000
committerjkh <jkh@FreeBSD.org>1995-08-29 16:44:46 +0000
commit11a83dc413b4c43ec0f45da657b88499bbc6a6a3 (patch)
tree38f6bf954c017b96489e3826d4ef8cd2da9d5df8 /sys/i386/isa/spigot.c
parent047a51afc1da6e6e03cf32914db0b4bd94dfab6e (diff)
downloadFreeBSD-src-11a83dc413b4c43ec0f45da657b88499bbc6a6a3.zip
FreeBSD-src-11a83dc413b4c43ec0f45da657b88499bbc6a6a3.tar.gz
Address Bruce's mmap concerns in this driver too.
Submitted by: Jim Lowe <james@miller.cs.uwm.edu>
Diffstat (limited to 'sys/i386/isa/spigot.c')
-rw-r--r--sys/i386/isa/spigot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/i386/isa/spigot.c b/sys/i386/isa/spigot.c
index 87f09b0..411ccad 100644
--- a/sys/i386/isa/spigot.c
+++ b/sys/i386/isa/spigot.c
@@ -35,7 +35,7 @@
* We are working with the vendor so I can release the code, please don't
* ask me for it. When/if I can release it, I will.
*
- * Version 1.3, June 23, 1995.
+ * Version 1.4, August 29, 1995.
*
*/
@@ -255,11 +255,11 @@ struct spigot_softc *ss = (struct spigot_softc *)&spigot_softc[0];
if(offset != 0) {
printf("spigot mmap offset = 0x%x\n", offset);
- return 0;
+ return -1;
}
if(nprot & PROT_EXEC)
- return 0;
+ return -1;
return i386_btop(ss->maddr);
}
OpenPOWER on IntegriCloud