Loading drivers/usb/gadget/composite.c +6 −1 Original line number Diff line number Diff line Loading @@ -1963,7 +1963,6 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) if (cdev->use_os_string && cdev->os_desc_config && (ctrl->bRequestType & USB_TYPE_VENDOR) && ctrl->bRequest == cdev->b_vendor_code) { struct usb_request *req; struct usb_configuration *os_desc_cfg; u8 *buf; int interface; Loading @@ -1984,6 +1983,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 */ Loading Loading
drivers/usb/gadget/composite.c +6 −1 Original line number Diff line number Diff line Loading @@ -1963,7 +1963,6 @@ composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) if (cdev->use_os_string && cdev->os_desc_config && (ctrl->bRequestType & USB_TYPE_VENDOR) && ctrl->bRequest == cdev->b_vendor_code) { struct usb_request *req; struct usb_configuration *os_desc_cfg; u8 *buf; int interface; Loading @@ -1984,6 +1983,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 */ Loading