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

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

Merge "USB: configfs: Clear deactivation flag in configfs_composite_unbind()"

parents a5847bd4 2228b2c8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1502,6 +1502,8 @@ static void configfs_composite_unbind(struct usb_gadget *gadget)
	usb_ep_autoconfig_reset(cdev->gadget);
	spin_lock_irqsave(&gi->spinlock, flags);
	cdev->gadget = NULL;
	cdev->deactivations = 0;
	gadget->deactivated = false;
	set_gadget_data(gadget, NULL);
	spin_unlock_irqrestore(&gi->spinlock, flags);
}