Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/usb Also destroy the mutex. Thanks chs@ for noticing.



details:   https://anonhg.NetBSD.org/src/rev/e5d59cbbc92c
branches:  trunk
changeset: 451523:e5d59cbbc92c
user:      mlelstv <mlelstv%NetBSD.org@localhost>
date:      Sun May 26 17:48:47 2019 +0000

description:
Also destroy the mutex. Thanks chs@ for noticing.

diffstat:

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

diffs (26 lines):

diff -r d2a94ef0e577 -r e5d59cbbc92c sys/dev/usb/if_mue.c
--- a/sys/dev/usb/if_mue.c      Sun May 26 14:49:18 2019 +0000
+++ b/sys/dev/usb/if_mue.c      Sun May 26 17:48:47 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if_mue.c,v 1.46 2019/05/26 04:52:07 mlelstv Exp $      */
+/*     $NetBSD: if_mue.c,v 1.47 2019/05/26 17:48:47 mlelstv Exp $      */
 /*     $OpenBSD: if_mue.c,v 1.3 2018/08/04 16:42:46 jsg Exp $  */
 
 /*
@@ -20,7 +20,7 @@
 /* Driver for Microchip LAN7500/LAN7800 chipsets. */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_mue.c,v 1.46 2019/05/26 04:52:07 mlelstv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_mue.c,v 1.47 2019/05/26 17:48:47 mlelstv Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_usb.h"
@@ -1113,6 +1113,7 @@
        usbd_add_drv_event(USB_EVENT_DRIVER_DETACH, sc->mue_udev, sc->mue_dev);
 
        mutex_destroy(&sc->mue_mii_lock);
+       mutex_destroy(&sc->mue_usb_lock);
 
        return 0;
 }



Home | Main Index | Thread Index | Old Index