Module Name: src Committed By: skrll Date: Sat Jan 2 16:14:46 UTC 2016
Modified Files: src/sys/dev/usb [nick-nhusb]: uhub.c Log Message: Destroy the mutex on detach To generate a diff of this commit: cvs rdiff -u -r1.126.2.19 -r1.126.2.20 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.126.2.19 src/sys/dev/usb/uhub.c:1.126.2.20 --- src/sys/dev/usb/uhub.c:1.126.2.19 Sat Jan 2 14:14:45 2016 +++ src/sys/dev/usb/uhub.c Sat Jan 2 16:14:46 2016 @@ -1,4 +1,4 @@ -/* $NetBSD: uhub.c,v 1.126.2.19 2016/01/02 14:14:45 skrll Exp $ */ +/* $NetBSD: uhub.c,v 1.126.2.20 2016/01/02 16:14:46 skrll 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.126.2.19 2016/01/02 14:14:45 skrll Exp $"); +__KERNEL_RCSID(0, "$NetBSD: uhub.c,v 1.126.2.20 2016/01/02 16:14:46 skrll Exp $"); #include <sys/param.h> @@ -854,6 +854,8 @@ uhub_detach(device_t self, int flags) if (sc->sc_statusbuf) kmem_free(sc->sc_statusbuf, sc->sc_statuslen); + mutex_destroy(&sc->sc_lock); + /* XXXSMP usb */ KERNEL_UNLOCK_ONE(curlwp);