summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMarcus Glocker <mglocker@cvs.openbsd.org>2016-06-13 11:04:45 +0000
committerMarcus Glocker <mglocker@cvs.openbsd.org>2016-06-13 11:04:45 +0000
commitec2080f0629ec43c863126673fa7d912b769af17 (patch)
tree2d5202668a00297e5d5ecf65f930806276b0db39 /sys/dev
parent37360075efddca88f7878c867e5d5d40d43d14f1 (diff)
Remove the restriction for the usbd_ref_* functions to work just in case
of dev->dying. With this we also can use them on device closing, not just detaching. ok mpi
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/usb/usbdi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/usb/usbdi.c b/sys/dev/usb/usbdi.c
index ccfcf9d8f3b..22e38afe303 100644
--- a/sys/dev/usb/usbdi.c
+++ b/sys/dev/usb/usbdi.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: usbdi.c,v 1.83 2015/07/10 15:47:48 mpi Exp $ */
+/* $OpenBSD: usbdi.c,v 1.84 2016/06/13 11:04:44 mglocker Exp $ */
/* $NetBSD: usbdi.c,v 1.103 2002/09/27 15:37:38 provos Exp $ */
/* $FreeBSD: src/sys/dev/usb/usbdi.c,v 1.28 1999/11/17 22:33:49 n_hibma Exp $ */
@@ -80,7 +80,7 @@ usbd_ref_incr(struct usbd_device *dev)
void
usbd_ref_decr(struct usbd_device *dev)
{
- if (--dev->ref_cnt == 0 && dev->dying)
+ if (--dev->ref_cnt == 0)
wakeup(&dev->ref_cnt);
}