]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r263423:
authorhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 27 Mar 2014 07:06:29 +0000 (07:06 +0000)
committerhselasky <hselasky@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Thu, 27 Mar 2014 07:06:29 +0000 (07:06 +0000)
commit360b25e17babc8cd59b939d8e37375eb8b2f03d4
treeb799dd67f1136733478d126a5a7faacf290be5ff
parente404110064ed68e0bd723b02dc7119df00398c14
MFC r263423:
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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@263801 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/dev/usb/usb_dev.c
sys/dev/usb/usb_device.c
sys/dev/usb/usb_process.c
sys/dev/usb/usb_process.h