From 8fe25da9d7762dba747313181158c50980ec44e0 Mon Sep 17 00:00:00 2001 From: Miod Vallat Date: Fri, 23 Jun 2006 06:27:13 +0000 Subject: 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@ --- sys/dev/ic/atw.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/dev/ic/atw.c') 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: -- cgit v1.2.3