Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/usb Fix previous; restore 'up' pointer in second uhu...
details: https://anonhg.NetBSD.org/src/rev/ad0130794e18
branches: trunk
changeset: 989055:ad0130794e18
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Mon Oct 11 00:08:31 2021 +0000
description:
Fix previous; restore 'up' pointer in second uhub_explore loop.
diffstat:
sys/dev/usb/uhub.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r 8601cb89b3d6 -r ad0130794e18 sys/dev/usb/uhub.c
--- a/sys/dev/usb/uhub.c Mon Oct 11 00:00:03 2021 +0000
+++ b/sys/dev/usb/uhub.c Mon Oct 11 00:08:31 2021 +0000
@@ -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 @@
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,
Home |
Main Index |
Thread Index |
Old Index