Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8463ac51 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "USB: composite: Release spinlock before WARN()"

parents bd2b139f 2e6480db
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -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__);