sound: usb: Clear in_use if wait_event fails while disconnect
Commit 02ec74e6 ("sound: usb: Ensure proper cleanup of uaudio_dev under all scenarios") fixed cyclic dependency between uaudio_dev_release and uaudio_dev_cleanup by allowing dev_cleanup to happen if wait_event of in_use to be cleared fails. Instead, clear in_use in disconnect_cb if wait_event fails and don't rely on dev_release to happen, to maintain the serialization of these calls. Change-Id: If779dffd972334e050686a1865ed8f63b8e8655d Signed-off-by:Pratham Pratap <prathampratap@codeaurora.org>
Loading
Please register or sign in to comment