Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/usb initialize ntag with the old dmatag so we never ...



details:   https://anonhg.NetBSD.org/src/rev/335fc75521bc
branches:  trunk
changeset: 361153:335fc75521bc
user:      macallan <macallan%NetBSD.org@localhost>
date:      Sat Feb 12 15:55:04 2022 +0000

description:
initialize ntag with the old dmatag so we never end up with an invalid one
suggested by jmcneill@

diffstat:

 sys/dev/usb/ehci.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r f7d64b7a6ed8 -r 335fc75521bc sys/dev/usb/ehci.c
--- a/sys/dev/usb/ehci.c        Sat Feb 12 15:51:28 2022 +0000
+++ b/sys/dev/usb/ehci.c        Sat Feb 12 15:55:04 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ehci.c,v 1.301 2022/01/26 16:49:06 macallan Exp $ */
+/*     $NetBSD: ehci.c,v 1.302 2022/02/12 15:55:04 macallan Exp $ */
 
 /*
  * Copyright (c) 2004-2012,2016,2020 The NetBSD Foundation, Inc.
@@ -54,7 +54,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.301 2022/01/26 16:49:06 macallan Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ehci.c,v 1.302 2022/02/12 15:55:04 macallan Exp $");
 
 #include "ohci.h"
 #include "uhci.h"
@@ -498,7 +498,7 @@
         * - the driver doesn't currently set EHCI_CTRLDSSEGMENT to anything
         *   other than 0.
         */
-       bus_dma_tag_t ntag = NULL;
+       bus_dma_tag_t ntag = sc->sc_bus.ub_dmatag;
        sc->sc_dmatag = sc->sc_bus.ub_dmatag;
        err = bus_dmatag_subregion(sc->sc_bus.ub_dmatag, 0, UINT32_MAX,
            &ntag, 0);



Home | Main Index | Thread Index | Old Index