Loading drivers/usb/gadget/function/f_mtp.c +6 −0 Original line number Diff line number Diff line Loading @@ -1428,6 +1428,12 @@ static int mtp_ctrlrequest(struct usb_composite_dev *cdev, total = sizeof(*head) + (sizeof(*func) * func_num); /* header section */ if (w_length < total && w_length >= (sizeof(*head) + sizeof(*func))) { total = w_length; func_num = (total - sizeof(*head)) / sizeof(*func); } head->dwLength = total; head->bcdVersion = cpu_to_le16(0x0100); head->wIndex = cpu_to_le16(4); Loading sound/usb/card.c +0 −1 Original line number Diff line number Diff line Loading @@ -681,7 +681,6 @@ static int usb_audio_probe(struct usb_interface *intf, chip->num_interfaces++; usb_set_intfdata(intf, chip); intf->needs_remote_wakeup = 1; usb_enable_autosuspend(chip->dev); atomic_dec(&chip->active); mutex_unlock(®ister_mutex); return 0; Loading Loading
drivers/usb/gadget/function/f_mtp.c +6 −0 Original line number Diff line number Diff line Loading @@ -1428,6 +1428,12 @@ static int mtp_ctrlrequest(struct usb_composite_dev *cdev, total = sizeof(*head) + (sizeof(*func) * func_num); /* header section */ if (w_length < total && w_length >= (sizeof(*head) + sizeof(*func))) { total = w_length; func_num = (total - sizeof(*head)) / sizeof(*func); } head->dwLength = total; head->bcdVersion = cpu_to_le16(0x0100); head->wIndex = cpu_to_le16(4); Loading
sound/usb/card.c +0 −1 Original line number Diff line number Diff line Loading @@ -681,7 +681,6 @@ static int usb_audio_probe(struct usb_interface *intf, chip->num_interfaces++; usb_set_intfdata(intf, chip); intf->needs_remote_wakeup = 1; usb_enable_autosuspend(chip->dev); atomic_dec(&chip->active); mutex_unlock(®ister_mutex); return 0; Loading