opnsense-src/sys/dev/usb
Ian Lepore dc91a9715f Fix busdma resource leak on usb device detach.
When a usb device is detached, usb_pc_dmamap_destroy() called
bus_dmamap_destroy() while the map was still loaded. That's harmless on x86
architectures, but on all other platforms it causes bus_dmamap_destroy() to
return EBUSY and leak away any memory resources (including bounce buffers)
associated with the mapping, as well as any allocated map structure itself.

This change introduces a new is_loaded flag to the usb_page_cache struct to
track whether a map is loaded or not. If the map is loaded,
bus_dmamap_unload() is called before bus_dmamap_destroy() to avoid leaking
away resources.

MFC after:	7 days
Differential Revision:	https://reviews.freebsd.org/D32208
2021-09-28 13:29:10 -06:00
..
controller Fix a common typo in source code comments 2021-08-14 14:17:48 +02:00
gadget
input wmt(4): Adapt to recent KPI changes 2021-09-02 22:35:26 +03:00
misc
net if_cdce: Add support for setting RX filtering 2021-09-01 12:27:14 +02:00
quirk Add more USB quirks for Kingston devices. 2021-04-22 12:40:29 +02:00
serial umodem: Add Huawei E3372h-320 device id 2021-08-31 08:44:36 +02:00
storage cam: fix xpt_bus_register and xpt_bus_deregister return errno 2021-06-28 16:13:03 -06:00
template
video
wlan run(4): add support for DLINK DWA-130 rev F1 wireless adaptor. 2021-05-23 21:31:51 +03:00
ufm_ioctl.h
uftdiio.h
uled_ioctl.h
usb.h Narrow down the probe range for if_ure(4) compatible devices 2021-06-04 15:51:01 +02:00
usb_bus.h
usb_busdma.c Fix busdma resource leak on usb device detach. 2021-09-28 13:29:10 -06:00
usb_busdma.h Fix busdma resource leak on usb device detach. 2021-09-28 13:29:10 -06:00
usb_cdc.h
usb_controller.h
usb_core.c
usb_core.h
usb_debug.c Update usb_timings_sysctl_handler() to accept any value for timings between 2021-05-18 15:52:41 +02:00
usb_debug.h
usb_dev.c
usb_dev.h
usb_device.c
usb_device.h
usb_dynamic.c
usb_dynamic.h
usb_endian.h
usb_error.c
usb_fdt_support.c
usb_fdt_support.h
usb_freebsd.h
usb_freebsd_loader.h
usb_generic.c
usb_generic.h
usb_handle_request.c
usb_hid.c
usb_hub.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
usb_hub.h
usb_hub_acpi.c newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
usb_hub_private.h newbus: Move from bus_child_{pnpinfo,location}_src to bus_child_{pnpinfo,location} with sbuf 2021-06-22 20:52:06 -06:00
usb_if.m
usb_ioctl.h
usb_lookup.c
usb_mbuf.c
usb_mbuf.h
usb_msctest.c
usb_msctest.h
usb_parse.c
usb_pci.h
usb_pf.c
usb_pf.h
usb_process.c
usb_process.h
usb_request.c
usb_request.h
usb_transfer.c Send a zero-length-packet first when opening a BULK endpoint for USB serial 2021-07-15 12:11:53 +02:00
usb_transfer.h Cleanup unused USB enums. 2021-07-15 12:38:42 +02:00
usb_util.c
usb_util.h
usbdevs USB/U3G: Added Panasonic CF-F9 GOBI 3G modem to U3G module. 2021-06-13 10:23:01 -06:00
usbdi.h Send a zero-length-packet first when opening a BULK endpoint for USB serial 2021-07-15 12:11:53 +02:00
usbdi_util.h
usbhid.h