diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-06-23 22:08:38 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2024-06-23 22:08:38 +0000 |
commit | d6bb627c7b9257f11ba10c398209f1400a1d09d0 (patch) | |
tree | ac0694586de5b9274f978de4b58a3842ae6b908f /sys/arch/sparc64 | |
parent | ac485638634400d44fe9adbec493296c38ffcd74 (diff) |
If an ioctl(2) request isn't implemented we should return ENOTTY.
ok deraadt@
Diffstat (limited to 'sys/arch/sparc64')
-rw-r--r-- | sys/arch/sparc64/sparc64/mem.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sparc64/sparc64/mem.c b/sys/arch/sparc64/sparc64/mem.c index b0314bf27ad..acd60dd5fca 100644 --- a/sys/arch/sparc64/sparc64/mem.c +++ b/sys/arch/sparc64/sparc64/mem.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mem.c,v 1.20 2020/05/17 11:12:55 kn Exp $ */ +/* $OpenBSD: mem.c,v 1.21 2024/06/23 22:08:37 kettenis Exp $ */ /* $NetBSD: mem.c,v 1.18 2001/04/24 04:31:12 thorpej Exp $ */ /* @@ -202,6 +202,5 @@ mmioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p) return 0; } - return (EOPNOTSUPP); + return (ENOTTY); } - |