mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-15 01:01:56 -04:00
Merge "USB: composite: Release spinlock before WARN()"
This commit is contained in:
commit
8463ac51fe
1 changed files with 6 additions and 0 deletions
|
|
@ -2509,7 +2509,13 @@ void usb_composite_setup_continue(struct usb_composite_dev *cdev)
|
|||
spin_lock_irqsave(&cdev->lock, flags);
|
||||
|
||||
if (cdev->delayed_status == 0) {
|
||||
if (!cdev->config) {
|
||||
spin_unlock_irqrestore(&cdev->lock, flags);
|
||||
return;
|
||||
}
|
||||
spin_unlock_irqrestore(&cdev->lock, flags);
|
||||
WARN(cdev, "%s: Unexpected call\n", __func__);
|
||||
return;
|
||||
|
||||
} else if (--cdev->delayed_status == 0) {
|
||||
DBG(cdev, "%s: Completing delayed status\n", __func__);
|
||||
|
|
|
|||
Loading…
Reference in a new issue