diff options
author | 2001-01-31 16:11:34 +0000 | |
---|---|---|
committer | 2001-01-31 16:11:34 +0000 | |
commit | 2cbeb4ab6d9b0f51d09c529648f518b7d6d16fc1 (patch) | |
tree | b42d64ad7b466d7a9def20af281b7a22e0c1aad6 | |
parent | regen'd. (diff) | |
download | wireguard-openbsd-2cbeb4ab6d9b0f51d09c529648f518b7d6d16fc1.tar.xz wireguard-openbsd-2cbeb4ab6d9b0f51d09c529648f518b7d6d16fc1.zip |
mmap should return -1 on failure, not EOPNOTSUPP.
As it was now, an mmap of /dev/mem always returned page 45.
-rw-r--r-- | sys/arch/sparc/sparc/mem.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/sparc/sparc/mem.c b/sys/arch/sparc/sparc/mem.c index 79881f5166a..fedee0ef622 100644 --- a/sys/arch/sparc/sparc/mem.c +++ b/sys/arch/sparc/sparc/mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mem.c,v 1.12 2000/03/04 16:42:15 art Exp $ */ +/* $OpenBSD: mem.c,v 1.13 2001/01/31 16:11:34 art Exp $ */ /* $NetBSD: mem.c,v 1.13 1996/03/30 21:12:16 christos Exp $ */ /* @@ -235,7 +235,7 @@ mmmmap(dev, off, prot) int off, prot; { - return (EOPNOTSUPP); + return (-1); } /*ARGSUSED*/ |