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

Commit fb1f77e5 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents 307e1d36 6d0d3f22
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2461,6 +2461,11 @@ 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__);

	} else if (--cdev->delayed_status == 0) {