Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb xhci(4): Make sure to destroy sc_rhlock on detach.



details:   https://anonhg.NetBSD.org/src/rev/a0953d78422a
branches:  trunk
changeset: 369805:a0953d78422a
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Thu Sep 01 18:09:45 2022 +0000

description:
xhci(4): Make sure to destroy sc_rhlock on detach.

diffstat:

 sys/dev/usb/xhci.c |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 74fe6e01e4ef -r a0953d78422a sys/dev/usb/xhci.c
--- a/sys/dev/usb/xhci.c        Thu Sep 01 17:54:47 2022 +0000
+++ b/sys/dev/usb/xhci.c        Thu Sep 01 18:09:45 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: xhci.c,v 1.168 2022/08/23 15:16:44 riastradh Exp $     */
+/*     $NetBSD: xhci.c,v 1.169 2022/09/01 18:09:45 riastradh Exp $     */
 
 /*
  * Copyright (c) 2013 Jonathan A. Kollasch
@@ -34,7 +34,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.168 2022/08/23 15:16:44 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xhci.c,v 1.169 2022/09/01 18:09:45 riastradh Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -663,6 +663,7 @@
                kmem_free(sc->sc_rhportmap[j], sc->sc_maxports * sizeof(int));
        }
 
+       mutex_destroy(&sc->sc_rhlock);
        mutex_destroy(&sc->sc_lock);
        mutex_destroy(&sc->sc_intr_lock);
 



Home | Main Index | Thread Index | Old Index