diff options
author | 2006-06-23 06:27:08 +0000 | |
---|---|---|
committer | 2006-06-23 06:27:08 +0000 | |
commit | 07aaebcc98a187b2d036aa04587ca3cdb2f94ff2 (patch) | |
tree | ce47ea0306352cff1d06bf77d30e1b8048dac417 /sys/dev/ic/ath.c | |
parent | bump up the RX ring count on sparc64 a little bit. (diff) | |
download | wireguard-openbsd-07aaebcc98a187b2d036aa04587ca3cdb2f94ff2.tar.xz wireguard-openbsd-07aaebcc98a187b2d036aa04587ca3cdb2f94ff2.zip |
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/ath.c')
-rw-r--r-- | sys/dev/ic/ath.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/ic/ath.c b/sys/dev/ic/ath.c index 16f5587cbf6..d6f8deae5a1 100644 --- a/sys/dev/ic/ath.c +++ b/sys/dev/ic/ath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ath.c,v 1.50 2006/05/22 20:35:12 krw Exp $ */ +/* $OpenBSD: ath.c,v 1.51 2006/06/23 06:27:11 miod Exp $ */ /* $NetBSD: ath.c,v 1.37 2004/08/18 21:59:39 dyoung Exp $ */ /*- @@ -172,7 +172,6 @@ ath_activate(struct device *self, enum devact act) s = splnet(); switch (act) { case DVACT_ACTIVATE: - rv = EOPNOTSUPP; break; case DVACT_DEACTIVATE: if_deactivate(&sc->sc_ic.ic_if); |