summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThordur I. Bjornsson <thib@cvs.openbsd.org>2008-02-08 15:03:37 +0000
committerThordur I. Bjornsson <thib@cvs.openbsd.org>2008-02-08 15:03:37 +0000
commitd1bacaeb462a6c1fbd0ab1af648febbfc6634b0f (patch)
treefc16afd2546324340ab922dbf459f558856b5152
parent380e4ca3347264b12ced0797c394d11e6b9a56f7 (diff)
Return ENOTTY not EINVAL for unsupported ioctl's;
ok kettenis@
-rw-r--r--sys/dev/ic/gem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ic/gem.c b/sys/dev/ic/gem.c
index 4e5675bdbd5..78d99d023d0 100644
--- a/sys/dev/ic/gem.c
+++ b/sys/dev/ic/gem.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gem.c,v 1.71 2008/01/11 22:50:18 kettenis Exp $ */
+/* $OpenBSD: gem.c,v 1.72 2008/02/08 15:03:36 thib Exp $ */
/* $NetBSD: gem.c,v 1.1 2001/09/16 00:11:43 eeh Exp $ */
/*
@@ -1480,7 +1480,7 @@ gem_ioctl(struct ifnet *ifp, u_long cmd, caddr_t data)
break;
default:
- error = EINVAL;
+ error = ENOTTY;
break;
}