summaryrefslogtreecommitdiff
path: root/sys/dev/usb/usb_device.c
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2015-01-14 14:04:29 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2015-01-14 14:04:29 +0000
commit07dbde6777f2861e380f81f84baf1ca63a3996e9 (patch)
treec8cfae0b952598052767f1b3247322249ead54e6 /sys/dev/usb/usb_device.c
parentc24341d2e3f265ca594b82d3a43df2bc41921105 (diff)
Notes
Diffstat (limited to 'sys/dev/usb/usb_device.c')
-rw-r--r--sys/dev/usb/usb_device.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/dev/usb/usb_device.c b/sys/dev/usb/usb_device.c
index e1ab2799c6c9..b3b46b366691 100644
--- a/sys/dev/usb/usb_device.c
+++ b/sys/dev/usb/usb_device.c
@@ -2019,7 +2019,10 @@ usb_destroy_dev(struct usb_fs_privdata *pd)
usb_destroy_dev_sync(pd);
return;
}
-
+
+ /* make sure we can re-use the device name */
+ delist_dev(pd->cdev);
+
USB_BUS_LOCK(bus);
LIST_INSERT_HEAD(&bus->pd_cleanup_list, pd, pd_next);
/* get cleanup going */