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

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

Merge "sound: usb: Increase upper bound check for bInterval to 16"

parents 6aa32839 869b8880
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -122,7 +122,7 @@ unsigned char snd_usb_parse_datainterval(struct snd_usb_audio *chip,
	case USB_SPEED_SUPER:
	case USB_SPEED_SUPER_PLUS:
		if (get_endpoint(alts, 0)->bInterval >= 1 &&
		    get_endpoint(alts, 0)->bInterval <= 4)
		    get_endpoint(alts, 0)->bInterval <= 16)
			return get_endpoint(alts, 0)->bInterval - 1;
		break;
	default: