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/usb/ueagle.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/usb/ueagle.c')
| -rw-r--r-- | sys/dev/usb/ueagle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/ueagle.c b/sys/dev/usb/ueagle.c index 09fc623053d..c1762f60d17 100644 --- a/sys/dev/usb/ueagle.c +++ b/sys/dev/usb/ueagle.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ueagle.c,v 1.10 2006/03/25 22:41:47 djm Exp $ */ +/* $OpenBSD: ueagle.c,v 1.11 2006/06/23 06:27:11 miod Exp $ */ /*- * Copyright (c) 2003-2005 @@ -1457,7 +1457,7 @@ ueagle_activate(device_ptr_t self, enum devact act) switch (act) { case DVACT_ACTIVATE: - return EOPNOTSUPP; + break; case DVACT_DEACTIVATE: if_deactivate(&sc->sc_if); |
