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

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

Merge "usb: gadget: Stall OS descriptor request for unsupported functions"

parents 375da5fa 7cd4d87b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -1969,6 +1969,12 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl)
				buf[6] = w_index;
				/* Number of ext compat interfaces */
				count = count_ext_compat(os_desc_cfg);
				/*
				 * Bailout if device does not
				 * have ext_compat interfaces.
				 */
				if (count == 0)
					break;
				buf[8] = count;
				count *= 24; /* 24 B/ext compat desc */
				count += 16; /* header */