Module Name: src
Committed By: jmcneill
Date: Mon Oct 11 00:08:31 UTC 2021
Modified Files:
src/sys/dev/usb: uhub.c
Log Message:
Fix previous; restore 'up' pointer in second uhub_explore loop.
To generate a diff of this commit:
cvs rdiff -u -r1.154 -r1.155 src/sys/dev/usb/uhub.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/usb/uhub.c
diff -u src/sys/dev/usb/uhub.c:1.154 src/sys/dev/usb/uhub.c:1.155
--- src/sys/dev/usb/uhub.c:1.154 Sun Oct 10 23:39:50 2021
+++ src/sys/dev/usb/uhub.c Mon Oct 11 00:08:31 2021
@@ -1,4 +1,4 @@
-/* $NetBSD: uhub.c,v 1.154 2021/10/10 23:39:50 jmcneill Exp $ */
+/* $NetBSD: uhub.c,v 1.155 2021/10/11 00:08:31 jmcneill Exp $ */
/* $FreeBSD: src/sys/dev/usb/uhub.c,v 1.18 1999/11/17 22:33:43 n_hibma Exp $ */
/* $OpenBSD: uhub.c,v 1.86 2015/06/29 18:27:40 mpi Exp $ */
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.154 2021/10/10 23:39:50 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.155 2021/10/11 00:08:31 jmcneill Exp $");
#ifdef _KERNEL_OPT
#include "opt_usb.h"
@@ -701,6 +701,8 @@ uhub_explore(struct usbd_device *dev)
continue;
}
+ up = &dev->ud_hub->uh_ports[port - 1];
+
/* Reset port, which implies enabling it. */
if (usbd_reset_port(dev, port, &up->up_status)) {
aprint_error_dev(sc->sc_dev,