Module Name: src
Committed By: riastradh
Date: Thu Sep 1 18:09:45 UTC 2022
Modified Files:
src/sys/dev/usb: xhci.c
Log Message:
xhci(4): Make sure to destroy sc_rhlock on detach.
To generate a diff of this commit:
cvs rdiff -u -r1.168 -r1.169 src/sys/dev/usb/xhci.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/xhci.c
diff -u src/sys/dev/usb/xhci.c:1.168 src/sys/dev/usb/xhci.c:1.169
--- src/sys/dev/usb/xhci.c:1.168 Tue Aug 23 15:16:44 2022
+++ src/sys/dev/usb/xhci.c Thu Sep 1 18:09:45 2022
@@ -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 @@ xhci_detach(struct xhci_softc *sc, int f
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);