diff options
author | hselasky <hselasky@FreeBSD.org> | 2011-08-11 11:30:21 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2011-08-11 11:30:21 +0000 |
commit | b3f993efadd59e4731fbd8ece5b71425df684b2d (patch) | |
tree | 07aa56bd69dcab88f3f2d136603d09f30855439f /sys/dev/usb/usbdi.h | |
parent | 09961aaff67f444fe11e41a761475d3cda5b7a36 (diff) | |
download | FreeBSD-src-b3f993efadd59e4731fbd8ece5b71425df684b2d.zip FreeBSD-src-b3f993efadd59e4731fbd8ece5b71425df684b2d.tar.gz |
Use synchronous device destruction instead of asynchronous, so that a new
device having the same name like a previous one is not created before the old
one is gone. This fixes some panics due to asserts in the devfs code which
were added recently.
Approved by: re (kib)
MFC after: 1 week
Diffstat (limited to 'sys/dev/usb/usbdi.h')
-rw-r--r-- | sys/dev/usb/usbdi.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/usbdi.h b/sys/dev/usb/usbdi.h index d832c32..8cdbc2d 100644 --- a/sys/dev/usb/usbdi.h +++ b/sys/dev/usb/usbdi.h @@ -37,6 +37,7 @@ struct usb_page_search; struct usb_process; struct usb_proc_msg; struct usb_mbuf; +struct usb_fs_privdata; struct mbuf; typedef enum { /* keep in sync with usb_errstr_table */ @@ -449,7 +450,7 @@ struct usb_fifo_methods { struct usb_fifo_sc { struct usb_fifo *fp[2]; - struct cdev* dev; + struct usb_fs_privdata *dev; }; const char *usbd_errstr(usb_error_t error); |