opnsense-src/sys/dev/usb
Hans Petter Selasky d008478e28 Try to resolve a possible deadlock when detaching USB devices which
create character devices. The deadlock can happen if an application is
issuing IOCTLs which require USB refcounting, at the same time the USB
device is detaching.

There is already a counter in place in the USB device structure to
detect this situation, but it was not always checked ahead of invoking
functions that might destroy character devices, like detach, set
configuration, set alternate interface or detach active kernel driver.

Reported by:	Daniel O'Connor <doconnor@gsoft.com.au>
MFC after:	1 week
2014-03-20 13:53:24 +00:00
..
controller Add device and gadget bindings for fdt. These are preliminary and will 2014-02-28 03:00:31 +00:00
gadget per style(9): 2013-07-24 18:32:15 +00:00
input Fix spelling. 2014-03-17 07:19:19 +00:00
misc Add new USB ID. 2013-04-03 06:45:21 +00:00
net In ue_attach_post_task(), initialize curvnet to vnet0 before calling if_attach(). 2014-02-18 01:20:26 +00:00
quirk Add new quirk. 2014-03-04 12:33:18 +00:00
serial Update NetBSD Foundation copyrights to 2-clause BSD 2014-03-18 01:40:25 +00:00
storage Adjust various SCSI drivers to handle either a 32-bit or 64-bit lun_id_t, 2013-10-30 14:04:47 +00:00
template USB method structures for USB controllers and USB pipes should be 2013-12-11 13:20:32 +00:00
wlan Reset the bit of the R92C_MCUFWDL associated with checksum report 2014-03-14 06:38:22 +00:00
ufm_ioctl.h Add missing header file inclusion guard. 2013-01-30 10:59:42 +00:00
usb.h Import USB RNDIS driver to FreeBSD from OpenBSD. 2014-02-06 08:47:14 +00:00
usb_bus.h USB method structures for USB controllers and USB pipes should be 2013-12-11 13:20:32 +00:00
usb_busdma.c Fix a regression issue. Contiguous single segment allocations above 2014-02-05 08:02:52 +00:00
usb_busdma.h Modify the FreeBSD USB kernel code so that it can be compiled directly 2013-01-30 15:26:04 +00:00
usb_cdc.h USB network (NCM driver): 2010-10-13 22:04:55 +00:00
usb_compat_linux.c - Try to fix build of 32-bit compatibility USB support for FreeBSD and 2013-08-12 09:17:48 +00:00
usb_compat_linux.h - Add usb_fill_bulk_urb() and usb_bulk_msg() linux compat functions [1] 2009-11-01 21:48:18 +00:00
usb_controller.h Improve the XHCI command timeout recovery handling code. 2013-12-06 08:42:41 +00:00
usb_core.c Provide one global language string descriptor for 2013-01-30 15:46:26 +00:00
usb_core.h Workaround for USB MIDI adapters which use non-supported values of 2014-03-14 08:42:30 +00:00
usb_debug.c Modify the FreeBSD USB kernel code so that it can be compiled directly 2013-01-30 15:26:04 +00:00
usb_debug.h Always put space before the comma before ##__VA_ARGS__ due to subtle compiler 2013-05-03 10:13:29 +00:00
usb_dev.c Try to resolve a possible deadlock when detaching USB devices which 2014-03-20 13:53:24 +00:00
usb_dev.h Resolve a LOR after r246616. Protect control requests using the USB device 2013-02-13 12:35:17 +00:00
usb_device.c Try to resolve a possible deadlock when detaching USB devices which 2014-03-20 13:53:24 +00:00
usb_device.h Implement better error recovery for Transaction Translators, TTs, 2014-01-13 15:21:11 +00:00
usb_dynamic.c - Add more defines to limit USB memory usage and number of allocations 2013-05-03 11:10:04 +00:00
usb_dynamic.h Refactor auto-quirk solution so that we break as few external 2011-09-10 15:55:36 +00:00
usb_endian.h Modify the FreeBSD USB kernel code so that it can be compiled directly 2013-01-30 15:26:04 +00:00
usb_error.c Modify the FreeBSD USB kernel code so that it can be compiled directly 2013-01-30 15:26:04 +00:00
usb_freebsd.h We are using the old callout API and should also add one extra tick in 2014-01-22 17:50:43 +00:00
usb_freebsd_loader.h Ensure that the DMA delay does not get rounded down to zero ticks when 2014-01-22 07:48:39 +00:00
usb_generic.c Fix a deadlock when trying to power off a USB device. The deadlock 2013-10-27 10:09:53 +00:00
usb_generic.h Fix _USB2_* refernces in the header protection defines. 2009-06-15 01:09:19 +00:00
usb_handle_request.c Resolve a LOR after r246616. Protect control requests using the USB device 2013-02-13 12:35:17 +00:00
usb_hid.c Modify the FreeBSD USB kernel code so that it can be compiled directly 2013-01-30 15:26:04 +00:00
usb_hub.c Fix the ordering of the arguments to printf in 2014-01-29 16:24:50 +00:00
usb_hub.h Implement better error recovery for Transaction Translators, TTs, 2014-01-13 15:21:11 +00:00
usb_if.m Implement better support for USB controller suspend and resume. 2011-12-14 00:28:54 +00:00
usb_ioctl.h - Try to fix build of 32-bit compatibility USB support for FreeBSD and 2013-08-12 09:17:48 +00:00
usb_lookup.c Make use of USB ID sections configurable. 2013-02-01 07:05:43 +00:00
usb_mbuf.c Modify the FreeBSD USB kernel code so that it can be compiled directly 2013-01-30 15:26:04 +00:00
usb_mbuf.h - Make struct usb_xfer opaque so that drivers can not access the internals 2009-06-23 02:19:59 +00:00
usb_msctest.c Fix some statical clang analyzer warnings. 2013-05-25 17:09:58 +00:00
usb_msctest.h This patch adds automatic detection of USB mass storage devices 2011-09-02 18:50:44 +00:00
usb_parse.c Add some defines to limit USB memory usage in reduced memory systems. 2013-05-03 09:23:06 +00:00
usb_pci.h Modify the FreeBSD USB kernel code so that it can be compiled directly 2013-01-30 15:26:04 +00:00
usb_pf.c The r48589 promised to remove implicit inclusion of if_var.h soon. Prepare 2013-10-26 17:58:36 +00:00
usb_pf.h - Improvements to USB PF solution 2011-04-03 20:03:45 +00:00
usb_process.c Try to resolve a possible deadlock when detaching USB devices which 2014-03-20 13:53:24 +00:00
usb_process.h Try to resolve a possible deadlock when detaching USB devices which 2014-03-20 13:53:24 +00:00
usb_request.c Implement better error recovery for Transaction Translators, TTs, 2014-01-13 15:21:11 +00:00
usb_request.h - Add more defines to limit USB memory usage and number of allocations 2013-05-03 11:10:04 +00:00
usb_transfer.c Workaround for USB MIDI adapters which use non-supported values of 2014-03-14 08:42:30 +00:00
usb_transfer.h This commit marks the beginning of a new internal USB 2011-11-28 09:54:41 +00:00
usb_util.c - Move scratch data from the USB bus structure to the USB device structure 2013-02-10 10:56:13 +00:00
usb_util.h Move the device_delete_all_children() function from usb_util.c 2011-11-19 10:11:50 +00:00
usbdevs Add new quirk. 2014-03-04 12:33:18 +00:00
usbdi.h Workaround for USB MIDI adapters which use non-supported values of 2014-03-14 08:42:30 +00:00
usbdi_util.h This commit adds full support for USB 3.0 devices in host and device 2010-10-04 23:18:05 +00:00
usbhid.h Modify the FreeBSD USB kernel code so that it can be compiled directly 2013-01-30 15:26:04 +00:00