summaryrefslogtreecommitdiff
path: root/sys/arch/hppa
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@cvs.openbsd.org>2024-06-23 22:08:38 +0000
committerMark Kettenis <kettenis@cvs.openbsd.org>2024-06-23 22:08:38 +0000
commitd6bb627c7b9257f11ba10c398209f1400a1d09d0 (patch)
treeac0694586de5b9274f978de4b58a3842ae6b908f /sys/arch/hppa
parentac485638634400d44fe9adbec493296c38ffcd74 (diff)
If an ioctl(2) request isn't implemented we should return ENOTTY.
ok deraadt@
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r--sys/arch/hppa/hppa/mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/hppa/hppa/mem.c b/sys/arch/hppa/hppa/mem.c
index 6752427dcf3..90dd7da574d 100644
--- a/sys/arch/hppa/hppa/mem.c
+++ b/sys/arch/hppa/hppa/mem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mem.c,v 1.6 2022/03/13 08:04:38 mpi Exp $ */
+/* $OpenBSD: mem.c,v 1.7 2024/06/23 22:08:37 kettenis Exp $ */
/*
* Copyright (c) 1998-2004 Michael Shalayeff
@@ -427,5 +427,5 @@ mmioctl(dev_t dev, u_long cmd, caddr_t data, int flags, struct proc *p)
return 0;
}
- return (EOPNOTSUPP);
+ return (ENOTTY);
}