K 10 svn:author V 8 hselasky K 8 svn:date V 27 2014-03-20T13:53:24.448966Z K 7 svn:log V 578 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 MFC after: 1 week END