opnsense-src/sys/dev/usb
Hans Petter Selasky d3bf5efc1f Fix device delete child function.
When detaching device trees parent devices must be detached prior to
detaching its children. This is because parent devices can have
pointers to the child devices in their softcs which are not
invalidated by device_delete_child(). This can cause use after free
issues and panic().

Device drivers implementing trees, must ensure its detach function
detaches or deletes all its children before returning.

While at it remove now redundant device_detach() calls before
device_delete_child() and device_delete_children(), mostly in
the USB controller drivers.

Tested by:		Jan Henrik Sylvester <me@janh.de>
Reviewed by:		jhb
Differential Revision:	https://reviews.freebsd.org/D8070
MFC after:		2 weeks
2016-10-17 10:20:38 +00:00
..
controller Fix device delete child function. 2016-10-17 10:20:38 +00:00
gadget Make a bunch of USB debug SYSCTLs tunable, so that their value(s) can 2015-01-05 15:04:17 +00:00
input const-ify struct evdev_methods 2016-10-03 17:20:34 +00:00
misc dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
net [fdt] Add one more heuristic to determine MAC address of the SMSC device 2016-10-12 19:53:10 +00:00
quirk Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
serial Add new USB ID. 2016-09-30 05:28:11 +00:00
storage Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
template Resolve deadlock between device_detach() and usbd_do_request_flags() 2016-09-05 15:35:58 +00:00
video Fix device delete child function. 2016-10-17 10:20:38 +00:00
wlan net80211: convert all ieee80211_input_mimo*() consumers 2016-10-12 20:50:13 +00:00
ufm_ioctl.h
uftdiio.h Return the current ftdi bitbang mode with the UFTDIIOC_GET_BITMODE ioctl. 2015-08-06 19:47:04 +00:00
uled_ioctl.h The USB LED driver for the Dream Cheeky WebMail Notifier. 2014-09-05 11:25:58 +00:00
usb.h Add definition of the ISOCHRONOUS endpoint usage bits. 2015-03-25 13:32:27 +00:00
usb_bus.h Improve the realtime properties of USB transfers for embedded systems 2015-08-14 12:57:53 +00:00
usb_busdma.c Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
usb_busdma.h Add helper function to check if a USB page cache buffer is properly 2015-11-07 11:40:35 +00:00
usb_cdc.h dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
usb_controller.h
usb_core.c Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
usb_core.h Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
usb_debug.c
usb_debug.h
usb_dev.c Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
usb_dev.h
usb_device.c Fix device delete child function. 2016-10-17 10:20:38 +00:00
usb_device.h Resolve deadlock between device_detach() and usbd_do_request_flags() 2016-09-05 15:35:58 +00:00
usb_dynamic.c Finish process of moving the LinuxKPI module into the default kernel build. 2015-10-29 08:28:39 +00:00
usb_dynamic.h Finish process of moving the LinuxKPI module into the default kernel build. 2015-10-29 08:28:39 +00:00
usb_endian.h
usb_error.c
usb_freebsd.h Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
usb_freebsd_loader.h Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
usb_generic.c Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
usb_generic.h
usb_handle_request.c dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
usb_hid.c dev/usb: minor spelling fixes in comments. 2016-05-02 17:44:03 +00:00
usb_hub.c Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
usb_hub.h
usb_if.m
usb_ioctl.h Add USB MIDI template for USB device side mode. 2015-06-01 11:24:34 +00:00
usb_lookup.c Update metadata for "tools/tools/bus_autoconf" after r292080. Use 2015-12-29 11:53:13 +00:00
usb_mbuf.c
usb_mbuf.h
usb_msctest.c Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
usb_msctest.h Add support for DYMO LabelWriter PnP. 2015-05-07 12:54:27 +00:00
usb_parse.c
usb_pci.h
usb_pf.c Fix race in USB PF which can happen if we stop tracing exactly when 2015-08-15 09:00:36 +00:00
usb_pf.h
usb_process.c Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
usb_process.h Improve the realtime properties of USB transfers for embedded systems 2015-08-14 12:57:53 +00:00
usb_request.c Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
usb_request.h
usb_transfer.c Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
usb_transfer.h
usb_util.c Resolve deadlock between device_detach() and usbd_do_request_flags() 2016-09-05 15:35:58 +00:00
usb_util.h
usbdevs Add new USB ID. 2016-09-30 05:28:11 +00:00
usbdi.h Improve USB polling mode by not locking any mutexes, asserting any 2016-09-14 12:07:34 +00:00
usbdi_util.h
usbhid.h