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/usb/udsbr.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/usb/udsbr.c')
-rw-r--r-- | sys/dev/usb/udsbr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/udsbr.c b/sys/dev/usb/udsbr.c index ae8685db6f5..74e26f55e37 100644 --- a/sys/dev/usb/udsbr.c +++ b/sys/dev/usb/udsbr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: udsbr.c,v 1.8 2005/08/01 05:36:48 brad Exp $ */ +/* $OpenBSD: udsbr.c,v 1.9 2006/06/23 06:27:11 miod Exp $ */ /* $NetBSD: udsbr.c,v 1.7 2002/07/11 21:14:27 augustss Exp $ */ /* @@ -173,7 +173,6 @@ udsbr_activate(device_ptr_t self, enum devact act) switch (act) { case DVACT_ACTIVATE: - return (EOPNOTSUPP); break; case DVACT_DEACTIVATE: |