diff options
author | hselasky <hselasky@FreeBSD.org> | 2014-06-11 05:39:08 +0000 |
---|---|---|
committer | hselasky <hselasky@FreeBSD.org> | 2014-06-11 05:39:08 +0000 |
commit | 6976be81b3b183e75f2ecf2a0fe39136ace8cb9f (patch) | |
tree | 48132ba6c7f1af2727c50cd208afbfc29b212dd5 /sys/dev/usb/usb_hub.h | |
parent | 150b18f93d81fc7c1cfeaaef8ccb23259a94e695 (diff) | |
download | FreeBSD-src-6976be81b3b183e75f2ecf2a0fe39136ace8cb9f.zip FreeBSD-src-6976be81b3b183e75f2ecf2a0fe39136ace8cb9f.tar.gz |
MFC r267240:
Resolve a deadlock setting the USB configuration index from userspace
on USB HUBs by moving the code into the USB explore threads. The
deadlock happens because child devices of the USB HUB don't have the
expected reference count when called from outside the explore
thread. Only the HUB device itself, which the IOCTL interface locks,
gets the correct reference count.
Diffstat (limited to 'sys/dev/usb/usb_hub.h')
-rw-r--r-- | sys/dev/usb/usb_hub.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/usb/usb_hub.h b/sys/dev/usb/usb_hub.h index dc8705a..16430d9 100644 --- a/sys/dev/usb/usb_hub.h +++ b/sys/dev/usb/usb_hub.h @@ -75,5 +75,6 @@ void usb_bus_power_update(struct usb_bus *bus); void usb_bus_powerd(struct usb_bus *bus); void uhub_root_intr(struct usb_bus *, const uint8_t *, uint8_t); usb_error_t uhub_query_info(struct usb_device *, uint8_t *, uint8_t *); +void uhub_explore_handle_re_enumerate(struct usb_device *); #endif /* _USB_HUB_H_ */ |