summaryrefslogtreecommitdiffstats
path: root/sys/dev/usb/if_url.c
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2006-06-23 06:27:08 +0000
committermiod <miod@openbsd.org>2006-06-23 06:27:08 +0000
commit07aaebcc98a187b2d036aa04587ca3cdb2f94ff2 (patch)
treece47ea0306352cff1d06bf77d30e1b8048dac417 /sys/dev/usb/if_url.c
parentbump up the RX ring count on sparc64 a little bit. (diff)
downloadwireguard-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/if_url.c')
-rw-r--r--sys/dev/usb/if_url.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/usb/if_url.c b/sys/dev/usb/if_url.c
index 19a22eef9a4..f4fbe1e2429 100644
--- a/sys/dev/usb/if_url.c
+++ b/sys/dev/usb/if_url.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_url.c,v 1.31 2006/03/25 22:41:47 djm Exp $ */
+/* $OpenBSD: if_url.c,v 1.32 2006/06/23 06:27:11 miod Exp $ */
/* $NetBSD: if_url.c,v 1.6 2002/09/29 10:19:21 martin Exp $ */
/*
* Copyright (c) 2001, 2002
@@ -632,7 +632,6 @@ url_activate(device_ptr_t self, enum devact act)
switch (act) {
case DVACT_ACTIVATE:
- return (EOPNOTSUPP);
break;
case DVACT_DEACTIVATE: