Skip to content

Commit 904edf8

Browse files
Pavankumar Kondetigregkh
authored andcommitted
usb: gadget: f_sourcesink: Fix isoc transfer for USB_SPEED_SUPER_PLUS
Currently when gadget enumerates in super speed plus, the isoc endpoint request buffer size is not calculated correctly. Fix this by checking the gadget speed against USB_SPEED_SUPER_PLUS and update the request buffer size. Fixes: 90c4d05 ("usb: fix various gadgets null ptr deref on 10gbps cabling.") Cc: stable <[email protected]> Signed-off-by: Pavankumar Kondeti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 8259114 commit 904edf8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/usb/gadget/function/f_sourcesink.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -584,6 +584,7 @@ static int source_sink_start_ep(struct f_sourcesink *ss, bool is_in,
584584

585585
if (is_iso) {
586586
switch (speed) {
587+
case USB_SPEED_SUPER_PLUS:
587588
case USB_SPEED_SUPER:
588589
size = ss->isoc_maxpacket *
589590
(ss->isoc_mult + 1) *

0 commit comments

Comments
 (0)