diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-23 06:27:13 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2006-06-23 06:27:13 +0000 |
commit | 8fe25da9d7762dba747313181158c50980ec44e0 (patch) | |
tree | 1549a3c414202ab70b3d2420c536b509f0fa2c81 /sys/dev/ic/atw.c | |
parent | 3d772db769af639e71686fe04b7b9bafc9aa27de (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/atw.c')
-rw-r--r-- | sys/dev/ic/atw.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ic/atw.c b/sys/dev/ic/atw.c index 3a6ee80f30b..2adea26dd3f 100644 --- a/sys/dev/ic/atw.c +++ b/sys/dev/ic/atw.c @@ -1,4 +1,4 @@ -/* $OpenBSD: atw.c,v 1.46 2006/05/22 20:35:12 krw Exp $ */ +/* $OpenBSD: atw.c,v 1.47 2006/06/23 06:27:11 miod Exp $ */ /* $NetBSD: atw.c,v 1.69 2004/07/23 07:07:55 dyoung Exp $ */ /*- @@ -324,7 +324,6 @@ atw_activate(struct device *self, enum devact act) s = splnet(); switch (act) { case DVACT_ACTIVATE: - rv = EOPNOTSUPP; break; case DVACT_DEACTIVATE: |