summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorBrad Smith <brad@cvs.openbsd.org>2008-10-03 01:41:41 +0000
committerBrad Smith <brad@cvs.openbsd.org>2008-10-03 01:41:41 +0000
commit8aff4808600d96719958040720ad5758ed4f38d5 (patch)
treea654fea0b02693ed23885a1b81f4125a081eb674 /sys/dev
parente3063bac61b0949bf605a8ff59bdeba1852ccbc4 (diff)
Return ENOTTY for unknown ioctl's.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/pcmcia/if_cnw.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/dev/pcmcia/if_cnw.c b/sys/dev/pcmcia/if_cnw.c
index 3af6da3438b..1589a32d75b 100644
--- a/sys/dev/pcmcia/if_cnw.c
+++ b/sys/dev/pcmcia/if_cnw.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_cnw.c,v 1.17 2008/06/26 05:42:17 ray Exp $ */
+/* $OpenBSD: if_cnw.c,v 1.18 2008/10/03 01:41:40 brad Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -777,7 +777,6 @@ cnw_ioctl(ifp, cmd, data)
s = splnet();
switch (cmd) {
-
case SIOCSIFADDR:
if (!(ifp->if_flags & IFF_RUNNING) &&
(error = cnw_enable(sc)) != 0)
@@ -809,7 +808,7 @@ cnw_ioctl(ifp, cmd, data)
break;
default:
- error = EINVAL;
+ error = ENOTTY;
break;
}