summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordlg <dlg@openbsd.org>2004-09-11 03:33:40 +0000
committerdlg <dlg@openbsd.org>2004-09-11 03:33:40 +0000
commit1bac3f456643027f3b28c50c171332a712ca1b4e (patch)
treea7c1265d14e95878f05d5899ebba99858dafe053
parentVerify packets from the server were md5'd with the same shared (diff)
downloadwireguard-openbsd-1bac3f456643027f3b28c50c171332a712ca1b4e.tar.xz
wireguard-openbsd-1bac3f456643027f3b28c50c171332a712ca1b4e.zip
backout 1.48, but maintain the fix for the merge error.
fixes hangs/crashes on detach of various devices. found by jolan@, tested by drahn@ and jolan@, ok by deraadt@
-rw-r--r--sys/dev/usb/ohci.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/usb/ohci.c b/sys/dev/usb/ohci.c
index 480ad720484..553d5698571 100644
--- a/sys/dev/usb/ohci.c
+++ b/sys/dev/usb/ohci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ohci.c,v 1.49 2004/08/11 04:18:34 dlg Exp $ */
+/* $OpenBSD: ohci.c,v 1.50 2004/09/11 03:33:40 dlg Exp $ */
/* $NetBSD: ohci.c,v 1.139 2003/02/22 05:24:16 tsutsui Exp $ */
/* $FreeBSD: src/sys/dev/usb/ohci.c,v 1.22 1999/11/17 22:33:40 n_hibma Exp $ */
@@ -1341,9 +1341,7 @@ ohci_softintr(void *v)
/* Handled by abort routine. */
continue;
}
-
- if (std->flags & OHCI_CALL_DONE)
- usb_uncallout(xfer->timeout_handle, ohci_timeout, xfer);
+ usb_uncallout(xfer->timeout_handle, ohci_timeout, xfer);
len = std->len;
if (std->td.td_cbp != 0)