summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormglocker <mglocker@openbsd.org>2020-10-23 20:25:35 +0000
committermglocker <mglocker@openbsd.org>2020-10-23 20:25:35 +0000
commit84fa4f577998fb13ba2f2bfeeb933c35ebe64188 (patch)
tree342599e7d9fd5a2bef6f937dddfbf3179e3b165a
parentRefactor page fault/error functions, normalizing their operation relative (diff)
downloadwireguard-openbsd-84fa4f577998fb13ba2f2bfeeb933c35ebe64188.tar.xz
wireguard-openbsd-84fa4f577998fb13ba2f2bfeeb933c35ebe64188.zip
Don't panic on curlen == 0. This DIAGNOSTIC code should have been removed
already in revision 1.57 IMO. From Mikolaj Kucharski <mikolaj AT kucharski DOT name>
-rw-r--r--sys/dev/usb/ehci.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/dev/usb/ehci.c b/sys/dev/usb/ehci.c
index 3479219be74..8aa205fc872 100644
--- a/sys/dev/usb/ehci.c
+++ b/sys/dev/usb/ehci.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ehci.c,v 1.211 2020/08/06 14:06:12 mglocker Exp $ */
+/* $OpenBSD: ehci.c,v 1.212 2020/10/23 20:25:35 mglocker Exp $ */
/* $NetBSD: ehci.c,v 1.66 2004/06/30 03:11:56 mycroft Exp $ */
/*
@@ -2407,10 +2407,6 @@ ehci_alloc_sqtd_chain(struct ehci_softc *sc, u_int alen, struct usbd_xfer *xfer,
curlen -= curlen % mps;
DPRINTFN(1,("ehci_alloc_sqtd_chain: multiple QTDs, "
"curlen=%u\n", curlen));
-#ifdef DIAGNOSTIC
- if (curlen == 0)
- panic("ehci_alloc_std: curlen == 0");
-#endif
}
DPRINTFN(4,("ehci_alloc_sqtd_chain: dataphys=0x%08x "