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

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

Merge "usb: gadget: Fix issue in config_desc with OS descriptor handling"

parents 938af354 d40fffba
Loading
Loading
Loading
Loading
+0 −8
Original line number Diff line number Diff line
@@ -660,18 +660,10 @@ static int config_desc(struct usb_composite_dev *cdev, unsigned w_value)
	w_value &= 0xff;

	pos = &cdev->configs;
	c = cdev->os_desc_config;
	if (c)
		goto check_config;

	while ((pos = pos->next) !=  &cdev->configs) {
		c = list_entry(pos, typeof(*c), list);

		/* skip OS Descriptors config which is handled separately */
		if (c == cdev->os_desc_config)
			continue;

check_config:
		/* ignore configs that won't work at this speed */
		switch (speed) {
		case USB_SPEED_SUPER_PLUS: