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

Commit b58312c7 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: composite: Handle OS descriptor request properly"

parents 5144607b 4f12e513
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1921,6 +1921,16 @@ unknown:
				}
				break;
			}

			if (value < 0) {
				DBG(cdev, "%s: unhandled os desc request\n",
						__func__);
				DBG(cdev, "req%02x.%02x v%04x i%04x l%d\n",
					ctrl->bRequestType, ctrl->bRequest,
					w_value, w_index, w_length);
				return value;
			}

			req->length = value;
			req->zero = value < w_length;
			value = usb_ep_queue(gadget->ep0, req, GFP_ATOMIC);