summaryrefslogtreecommitdiff
path: root/sys/dev/ic/awi.c
diff options
context:
space:
mode:
authorMiod Vallat <miod@cvs.openbsd.org>2006-06-23 06:27:13 +0000
committerMiod Vallat <miod@cvs.openbsd.org>2006-06-23 06:27:13 +0000
commit8fe25da9d7762dba747313181158c50980ec44e0 (patch)
tree1549a3c414202ab70b3d2420c536b509f0fa2c81 /sys/dev/ic/awi.c
parent3d772db769af639e71686fe04b7b9bafc9aa27de (diff)
In a drivers activate() entry point, if on DVACT_DEACTIVATE it does
something, then it MUST return zero on DVACT_ACTIVATE, not EOPNOTSUPP; this very popular bug has been cut and pasted a lot of times... ok deraadt@ mickey@
Diffstat (limited to 'sys/dev/ic/awi.c')
-rw-r--r--sys/dev/ic/awi.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ic/awi.c b/sys/dev/ic/awi.c
index ddd410b227b..91959f0e9ac 100644
--- a/sys/dev/ic/awi.c
+++ b/sys/dev/ic/awi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: awi.c,v 1.21 2006/03/25 22:41:42 djm Exp $ */
+/* $OpenBSD: awi.c,v 1.22 2006/06/23 06:27:11 miod Exp $ */
/* $NetBSD: awi.c,v 1.26 2000/07/21 04:48:55 onoe Exp $ */
/*-
@@ -414,7 +414,6 @@ awi_activate(self, act)
s = splnet();
switch (act) {
case DVACT_ACTIVATE:
- error = EOPNOTSUPP;
break;
case DVACT_DEACTIVATE: