Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/nick-nhusb]: src/sys/dev/usb Destroy the mutex on detach
details: https://anonhg.NetBSD.org/src/rev/0765d67784b0
branches: nick-nhusb
changeset: 334360:0765d67784b0
user: skrll <skrll%NetBSD.org@localhost>
date: Sat Jan 02 16:14:46 2016 +0000
description:
Destroy the mutex on detach
diffstat:
sys/dev/usb/uhub.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
diffs (27 lines):
diff -r ba449cdd6f18 -r 0765d67784b0 sys/dev/usb/uhub.c
--- a/sys/dev/usb/uhub.c Sat Jan 02 14:14:45 2016 +0000
+++ b/sys/dev/usb/uhub.c Sat Jan 02 16:14:46 2016 +0000
@@ -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 @@
if (sc->sc_statusbuf)
kmem_free(sc->sc_statusbuf, sc->sc_statuslen);
+ mutex_destroy(&sc->sc_lock);
+
/* XXXSMP usb */
KERNEL_UNLOCK_ONE(curlwp);
Home |
Main Index |
Thread Index |
Old Index