From 8aff4808600d96719958040720ad5758ed4f38d5 Mon Sep 17 00:00:00 2001 From: Brad Smith Date: Fri, 3 Oct 2008 01:41:41 +0000 Subject: Return ENOTTY for unknown ioctl's. --- sys/dev/pcmcia/if_cnw.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'sys') 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; } -- cgit v1.2.3