Module Name: src
Committed By: mlelstv
Date: Sun May 26 17:48:47 UTC 2019
Modified Files:
src/sys/dev/usb: if_mue.c
Log Message:
Also destroy the mutex. Thanks chs@ for noticing.
To generate a diff of this commit:
cvs rdiff -u -r1.46 -r1.47 src/sys/dev/usb/if_mue.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/if_mue.c
diff -u src/sys/dev/usb/if_mue.c:1.46 src/sys/dev/usb/if_mue.c:1.47
--- src/sys/dev/usb/if_mue.c:1.46 Sun May 26 04:52:07 2019
+++ src/sys/dev/usb/if_mue.c Sun May 26 17:48:47 2019
@@ -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 @@ mue_detach(device_t self, int flags)
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;
}